1 implementation of IMetricsListener
Microsoft.Extensions.Diagnostics (1)
Metrics\DebugConsoleMetricListener.cs (1)
13
internal sealed class DebugConsoleMetricListener :
IMetricsListener
, IDisposable
25 references to IMetricsListener
Microsoft.Extensions.Diagnostics (4)
Metrics\Configuration\MetricsBuilderConfigurationExtensions.cs (1)
20
/// which <see cref="Meter">Meters</see>, <see cref="Instrument">Instruments</see>, and <see cref="
IMetricsListener
">IMetricsListeners</see> are enabled.
Metrics\ListenerSubscription.cs (2)
14
private readonly
IMetricsListener
_metricsListener;
21
internal ListenerSubscription(
IMetricsListener
metricsListener, IMeterFactory meterFactory)
Metrics\MetricsSubscriptionManager.cs (1)
18
public MetricsSubscriptionManager(IEnumerable<
IMetricsListener
> listeners, IOptionsMonitor<MetricsOptions> options, IMeterFactory meterFactory)
Microsoft.Extensions.Diagnostics.Abstractions (21)
Metrics\InstrumentRule.cs (3)
17
/// <para>- ListenerName, an exact match. <see cref="
IMetricsListener
.Name">IMetricsListener.Name</see>.</para>
22
/// <param name="listenerName">The <see cref="
IMetricsListener
.Name">IMetricsListener.Name</see>.</param>
44
/// Gets the <see cref="
IMetricsListener
.Name">IMetricsListener.Name</see>, an exact match.
Metrics\IObservableInstrumentsSource.cs (1)
9
/// An interface registered with each IMetricsListener using <see cref="
IMetricsListener
.Initialize(IObservableInstrumentsSource)"/>.
Metrics\MetricsBuilderExtensions.Listeners.cs (8)
12
/// Extension methods for <see cref="IMetricsBuilder"/> to add or clear <see cref="
IMetricsListener
"/> registrations, and to enable or disable metrics.
17
/// Registers a new <see cref="
IMetricsListener
"/> of type <typeparamref name="T"/>.
22
public static IMetricsBuilder AddListener<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] T>(this IMetricsBuilder builder) where T : class,
IMetricsListener
25
builder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<
IMetricsListener
, T>());
30
/// Registers a new <see cref="
IMetricsListener
"/> instance.
35
public static IMetricsBuilder AddListener(this IMetricsBuilder builder,
IMetricsListener
listener)
43
/// Removes all <see cref="
IMetricsListener
"/> registrations from the dependency injection container.
50
builder.Services.RemoveAll<
IMetricsListener
>();
Metrics\MetricsBuilderExtensions.Rules.cs (9)
11
/// Extension methods for <see cref="IMetricsBuilder"/> to add or clear <see cref="
IMetricsListener
"/> registrations, and to enable or disable metrics.
25
/// Enables a specified <see cref="Instrument"/> for the given <see cref="Meter"/> and <see cref="
IMetricsListener
"/>.
30
/// <param name="listenerName">The <see cref="
IMetricsListener
"/>.Name. A null value matches all listeners.</param>
47
/// Enables a specified <see cref="Instrument"/> for the given <see cref="Meter"/> and <see cref="
IMetricsListener
"/>.
52
/// <param name="listenerName">The <see cref="
IMetricsListener
"/>.Name. A null value matches all listeners.</param>
69
/// Disables a specified <see cref="Instrument"/> for the given <see cref="Meter"/> and <see cref="
IMetricsListener
"/>.
74
/// <param name="listenerName">The <see cref="
IMetricsListener
"/>.Name. A null value matches all listeners.</param>
91
/// Disables a specified <see cref="Instrument"/> for the given <see cref="Meter"/> and <see cref="
IMetricsListener
"/>.
96
/// <param name="listenerName">The <see cref="
IMetricsListener
"/>.Name. A null value matches all listeners.</param>