Condividi tramite


MetricsBuilderExtensions Class

Definition

Extension methods for IMetricsBuilder to add or clear IMetricsListener registrations, and to enable or disable metrics.

public ref class MetricsBuilderExtensions abstract sealed
public static class MetricsBuilderExtensions
type MetricsBuilderExtensions = class
Public Module MetricsBuilderExtensions
Inheritance
MetricsBuilderExtensions

Methods

AddListener(IMetricsBuilder, IMetricsListener)

Registers a new IMetricsListener instance.

AddListener<T>(IMetricsBuilder)

Registers a new IMetricsListener of type T.

ClearListeners(IMetricsBuilder)

Removes all IMetricsListener registrations from the dependency injection container.

DisableMetrics(IMetricsBuilder, String, String, String, MeterScope)

Disables a specified Instrument for the given Meter and IMetricsListener.

DisableMetrics(IMetricsBuilder, String)

Disables all instruments for the given meter, for all registered listeners.

DisableMetrics(MetricsOptions, String, String, String, MeterScope)

Disables a specified Instrument for the given Meter and IMetricsListener.

DisableMetrics(MetricsOptions, String)

Disables all instruments for the given meter, for all registered listeners.

EnableMetrics(IMetricsBuilder, String, String, String, MeterScope)

Enables a specified Instrument for the given Meter and IMetricsListener.

EnableMetrics(IMetricsBuilder, String)

Enables all instruments for the given meter, for all registered listeners.

EnableMetrics(MetricsOptions, String, String, String, MeterScope)

Enables a specified Instrument for the given Meter and IMetricsListener.

EnableMetrics(MetricsOptions, String)

Enables all instruments for the given meter, for all registered listeners.

Applies to