Microsoft.Extensions.Diagnostics.Metrics.InstrumentRule
Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified
parameters match anything.
Gets a value that indicates whether the instrument should be enabled for the listener.
Gets the NameInstrument.Name, an exact match.
Gets the NameIMetricsListener.Name, an exact match.
Gets the NameMeter.Name, either an exact match or the longest prefix match. Only full segment matches are considered.
Gets the MeterScope.
public InstrumentRule(string meterName, string instrumentName, string listenerName, MeterScope scopes, bool enable)
Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified
parameters match anything.