MetricRegistry.register() accepts Tags... but MetricID.getTags() returns either String, List<Tag>, or Map<String, String>, but no array, so if one wants to register a new metric with tags obtained from an existing MetricID, they have to convert between types manually. It could be useful to add MetricID.getTagsAsArray() or something
MetricRegistry.register()
acceptsTags...
butMetricID.getTags()
returns eitherString
,List<Tag>
, orMap<String, String>
, but no array, so if one wants to register a new metric with tags obtained from an existingMetricID
, they have to convert between types manually. It could be useful to addMetricID.getTagsAsArray()
or something