15 instantiations of MeterListener
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
45var meterListener = new MeterListener();
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
186var meterListener = new MeterListener();
Microsoft.Extensions.Diagnostics (2)
Metrics\ListenerSubscription.cs (2)
25_meterListener = new MeterListener(); 95using var tempListener = new MeterListener();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (7)
Linux\AcceptanceTest.cs (2)
210using var listener = new MeterListener(); 293using var listener = new MeterListener();
Linux\LinuxCountersTests.cs (1)
89using var listener = new MeterListener
Linux\LinuxUtilizationProviderTests.cs (2)
54using var listener = new MeterListener 123using var listener = new MeterListener
Windows\WindowsCountersTests.cs (2)
39using var listener = new MeterListener 81using var listener = new MeterListener
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
36private readonly MeterListener _meterListener = new();
Microsoft.Extensions.Resilience.PerformanceTests (1)
MetricsUtil.cs (1)
14var meterListener = new MeterListener
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\AggregationManager.cs (2)
76_listener = new MeterListener(); 180using (MeterListener tempListener = new MeterListener())
60 references to MeterListener
Interop.FunctionalTests (1)
Http2\Http2RequestTests.cs (1)
45var meterListener = new MeterListener();
Microsoft.AspNetCore.Hosting.Tests (1)
HostingApplicationDiagnosticsTests.cs (1)
186var meterListener = new MeterListener();
Microsoft.Extensions.Diagnostics (3)
Metrics\ListenerSubscription.cs (3)
13private readonly MeterListener _meterListener; 44private void InstrumentPublished(Instrument instrument, MeterListener _) 95using var tempListener = new MeterListener();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Linux\AcceptanceTest.cs (5)
210using var listener = new MeterListener(); 220listener.InstrumentPublished = (Instrument instrument, MeterListener meterListener) 293using var listener = new MeterListener(); 303listener.InstrumentPublished = (Instrument instrument, MeterListener meterListener) 362private static void OnInstrumentPublished(Instrument instrument, MeterListener meterListener, object? meterScope)
Linux\LinuxCountersTests.cs (1)
89using var listener = new MeterListener
Linux\LinuxUtilizationProviderTests.cs (2)
54using var listener = new MeterListener 123using var listener = new MeterListener
Windows\WindowsCountersTests.cs (2)
39using var listener = new MeterListener 81using var listener = new MeterListener
Microsoft.Extensions.Diagnostics.Testing (1)
Metrics\MetricCollector.cs (1)
36private readonly MeterListener _meterListener = new();
Microsoft.Extensions.Resilience.PerformanceTests (3)
MetricsUtil.cs (2)
12public static MeterListener ListenPollyMetrics() 14var meterListener = new MeterListener
ResilienceEnrichmentBenchmark.cs (1)
17private MeterListener? _listener;
System.Diagnostics.DiagnosticSource (41)
System\Diagnostics\Metrics\AggregationManager.cs (3)
32private readonly MeterListener _listener; 137private void PublishedInstrument(Instrument instrument, MeterListener _) 180using (MeterListener tempListener = new MeterListener())
System\Diagnostics\Metrics\Instrument.common.cs (2)
84/// Record the measurement by notifying all <see cref="MeterListener" /> objects which listening to this instrument. 90/// Record the measurement by notifying all <see cref="MeterListener" /> objects which listening to this instrument.
System\Diagnostics\Metrics\Instrument.cs (6)
92List<MeterListener>? allListeners = null; 100allListeners = MeterListener.GetAllListeners(); 105foreach (MeterListener listener in allListeners) 187internal object? DisableMeasurements(MeterListener listener) => _subscriptions.Remove(new ListenerSubscription(listener), (s1, s2) => object.ReferenceEquals(s1.Listener, s2.Listener)).State; 189internal virtual void Observe(MeterListener listener) 195internal object? GetSubscriptionState(MeterListener listener)
System\Diagnostics\Metrics\Instrument.netcore.cs (4)
19/// Record the measurement by notifying all <see cref="MeterListener" /> objects which listening to this instrument. 27/// Record the measurement by notifying all <see cref="MeterListener" /> objects which listening to this instrument. 36/// Record the measurement by notifying all <see cref="MeterListener" /> objects which listening to this instrument. 46/// Record the measurement by notifying all <see cref="MeterListener" /> objects which listening to this instrument.
System\Diagnostics\Metrics\Meter.cs (18)
256/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 269/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 284/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param> 297/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param> 311/// <param name="observeValues">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 324/// <param name="observeValues">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 338/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 351/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 365/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param> 378/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" /></param> 393/// <param name="observeValues">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 406/// <param name="observeValues">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 420/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 430/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 441/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 451/// <param name="observeValue">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 462/// <param name="observeValues">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param> 472/// <param name="observeValues">The callback to call to get the measurements when the <see cref="ObservableInstrument{t}.Observe()" /> is called by <see cref="MeterListener.RecordObservableInstruments" />.</param>
System\Diagnostics\Metrics\MeterListener.cs (7)
21private static readonly List<MeterListener> s_allStartedListeners = new List<MeterListener>(); 50public Action<Instrument, MeterListener>? InstrumentPublished { get; set; } 295internal static List<MeterListener>? GetAllListeners() => s_allStartedListeners.Count == 0 ? null : new List<MeterListener>(s_allStartedListeners); 333internal ListenerSubscription(MeterListener listener, object? state = null) 339internal MeterListener Listener { get; }
System\Diagnostics\Metrics\ObservableInstrument.cs (1)
54internal override void Observe(MeterListener listener)