Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
Microsoft.Extensions.Diagnostics.Abstractions
System Library
| Author | Microsoft |
| Version | 10.0.1 |
| Tags |
Public Types
Microsoft.​Extensions.​Diagnostics.​Metrics
interface IMetricsBuilder
Configures the metrics system by registering IMetricsListeners and using rules
to determine which metrics are enabled.
interface IMetricsListener
Listens to metrics emitted from the system.
class InstrumentRule
Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified
parameters match anything.
interface IObservableInstrumentsSource
An interface registered with each IMetricsListener using <see cref="M:Microsoft.Extensions.Diagnostics.Metrics.IMetricsListener.Initialize(Microsoft.Extensions.Diagnostics.Metrics.IObservableInstrumentsSource)" /> .
class MeasurementHandlers
Represents a set of supported measurement types. If a listener does not support a given type, the measurement is skipped.
enum MeterScope
Represents scopes used by <see cref="T:Microsoft.Extensions.Diagnostics.Metrics.InstrumentRule" /> to distinguish between meters created via <see cref="T:System.Diagnostics.Metrics.Meter" /> constructors ( <see cref="F:Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Global" /> )
and those created via Dependency Injection with <see cref="M:System.Diagnostics.Metrics.IMeterFactory.Create(System.Diagnostics.Metrics.MeterOptions)" /> ( <see cref="F:Microsoft.Extensions.Diagnostics.Metrics.MeterScope.Local" /> ).
class MetricsBuilderExtensions
Extension methods for <see cref="T:Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder" /> to add or clear <see cref="T:Microsoft.Extensions.Diagnostics.Metrics.IMetricsListener" /> registrations, and to enable or disable metrics.
class MetricsOptions
Represents options for configuring the metrics system.