Microsoft.Extensions.Diagnostics.Metrics Namespace
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Classes
ConsoleMetrics |
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 |
A set of supported measurement types. If a listener does not support a given type, the measurement will be 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 |
Options for configuring the metrics system. |
TagNameAttribute |
Provides tag information for strongly typed metrics. |
Interfaces
IMetricsBuilder |
Represents a type used to configure the metrics system by registering IMetricsListeners and using rules to determine which metrics are enabled. |
IMetricsListener |
Represents a type used to listen to metrics emitted from the system. |
IObservableInstrumentsSource |
An interface registered with each IMetricsListener using Initialize(IObservableInstrumentsSource). The listener can call RecordObservableInstruments() to receive the current set of measurements for enabled observable instruments. |
Enums
MeterScope |
This is used by InstrumentRule to distinguish between meters created via Meter constructors (Global) and those created via Dependency Injection with Create(MeterOptions) (Local)."/>. |