2 instantiations of InstrumentRule
Microsoft.Extensions.Diagnostics (2)
Metrics\Configuration\MetricsConfigureOptions.cs (2)
89options.Rules.Add(new InstrumentRule(meterName, instrumentName: null, listenerName, scopes, meterEnabled)); 108options.Rules.Add(new InstrumentRule(meterSection.Key, instrumentName, listenerName, scopes, instrumentEnabled));
13 references to InstrumentRule
Microsoft.Extensions.Diagnostics (10)
Metrics\ListenerSubscription.cs (10)
17private IList<InstrumentRule> _rules = Array.Empty<InstrumentRule>(); 83internal void UpdateRules(IList<InstrumentRule> rules) 106var rule = GetMostSpecificRule(instrument); 129private InstrumentRule? GetMostSpecificRule(Instrument instrument) 131InstrumentRule? best = null; 132foreach (var rule in _rules) 145internal static bool RuleMatches(InstrumentRule rule, Instrument instrument, string listenerName, IMeterFactory meterFactory) 206internal static bool IsMoreSpecific(InstrumentRule rule, InstrumentRule? best, bool isLocalScope)
Microsoft.Extensions.Diagnostics.Abstractions (3)
Metrics\MeterScope.cs (1)
10/// Represents scopes used by <see cref="InstrumentRule"/> to distinguish between meters created via <see cref="Meter"/> constructors (<see cref="Global"/>)
Metrics\MetricsOptions.cs (2)
16public IList<InstrumentRule> Rules { get; } = new List<InstrumentRule>();