Freigeben über


Microsoft.Extensions.Diagnostics.Metrics Namespace

Classes

ConsoleMetrics

Provides constants for the Console metrics listener.

CounterAttribute

Provides information to guide the production of a strongly typed 64 bit integer counter metric factory method and associated type.

CounterAttribute<T>

Provides information to guide the production of a strongly typed 64 bit integer counter metric factory method and associated type.

GaugeAttribute

Provides information to guide the production of a strongly typed gauge metric factory method and associated type.

HistogramAttribute

Provides information to guide the production of a strongly typed histogram metric factory method and associated type.

HistogramAttribute<T>

Provides information to guide the production of a strongly typed histogram metric factory method and associated type.

InstrumentRule

Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified parameters match anything.

MeasurementHandlers

Represents a set of supported measurement types. If a listener does not support a given type, the measurement is skipped.

MetricsBuilderConfigurationExtensions

Extensions for IMetricsBuilder for enabling metrics based on IConfiguration.

MetricsBuilderConsoleExtensions

IMetricsBuilder extension methods for console output.

MetricsBuilderExtensions

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

MetricsOptions

Represents options for configuring the metrics system.

TagNameAttribute

Provides tag information for strongly typed metrics.

Interfaces

IMetricsBuilder

Configures the metrics system by registering IMetricsListeners and using rules to determine which metrics are enabled.

IMetricsListener

Listens to metrics emitted from the system.

IObservableInstrumentsSource

An interface registered with each IMetricsListener using Initialize(IObservableInstrumentsSource).

Enums

MeterScope

Represents scopes used by InstrumentRule to distinguish between meters created via Meter constructors (Global) and those created via Dependency Injection with Create(MeterOptions) (Local).