Name Tag IDs - GitAtSmsPortal/Metrics.NET GitHub Wiki

This feature is enabled by default and cannot be disabled at present.

This includes all tags specified for the metric as part of the unique name identifier. What this allows is a separation of metrics based not only on name, but on the uniqueness of the tags and their respective values too.

var meterA = Metric.Meter("name", Unit.None, tags: new[] { "key1=value_A,key2=value_AA" });
var meterB = Metric.Meter("name", Unit.None, tags: new[] { "key1=value_B,key2=value_BB" });
var meterC = Metric.Meter("name", Unit.None, tags: new[] { "key1=value_B,key2=value_BB" });

Even though all metrics specified above have the same name, meterA and meterB will be considered as different metrics when the WithTagIdentifiers is enabled. This will not be the case for meterC and meterB since they share the same name and tags.