eclipse / microprofile-metrics

microprofile-metrics
Apache License 2.0
100 stars 66 forks source link

Minor API mismatch between MetricRegistry and MetricID #457

Closed jmartisk closed 4 years ago

jmartisk commented 5 years ago

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