Microsoft.Extensions.Diagnostics.Abstractions
Configures the metrics system by registering IMetricsListeners and using rules
to determine which metrics are enabled.
Gets the application service collection that's used by extension methods to register services.
Listens to metrics emitted from the system.
Gets the name of the listener. This is used to identify the listener in the rules configuration.
Called once by the runtime to provide a used to pull for fresh metrics data.
A that can be called to request current metrics.
Called when a new instrument is created and enabled by a matching rule.
The new .
Listener state associated with this instrument. This will be returned to
and .
if the listener wants to subscribe to this instrument, otherwise .
Called when a instrument is disabled by the producer or a rules change.
The being disabled.
The original listener state returned by .
Called once to get the that will be used to process measurements.
The .
Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified
parameters match anything.
The most specific rule that matches a given instrument will be used. The priority of parameters is as follows:
- MeterName, either an exact match, or the longest prefix match. See Meter.Name.
- InstrumentName, an exact match. Instrument.Name.
- ListenerName, an exact match. IMetricsListener.Name.
- Scopes
The Meter.Name or prefix.
The Instrument.Name.
The IMetricsListener.Name.
A bitwise combination of the enumeration values that specifies the scopes to consider.
to enable the matched instrument for this listener; otherwise, .
Contains a set of parameters used to determine which instruments are enabled for which listeners. Unspecified
parameters match anything.
The most specific rule that matches a given instrument will be used. The priority of parameters is as follows:
- MeterName, either an exact match, or the longest prefix match. See Meter.Name.
- InstrumentName, an exact match. Instrument.Name.
- ListenerName, an exact match. IMetricsListener.Name.
- Scopes
The Meter.Name or prefix.
The Instrument.Name.
The IMetricsListener.Name.
A bitwise combination of the enumeration values that specifies the scopes to consider.
to enable the matched instrument for this listener; otherwise, .
Gets the Meter.Name, either an exact match or the longest prefix match. Only full segment matches are considered.
The meter name. If , all meters are matched.
Gets the Instrument.Name, an exact match.
The instrument name. If , all instruments for the meter are matched.
Gets the IMetricsListener.Name, an exact match.
The listener name. If , all listeners are matched.
Gets the .
This property is used to distinguish between meters created via constructors ()
and those created via Dependency Injection with ().
Gets a value that indicates whether the instrument should be enabled for the listener.
An interface registered with each IMetricsListener using .
The listener can call to receive the current set of measurements for enabled observable instruments.
Requests that the current set of metrics for enabled instruments be sent to the listener's objects.
Represents a set of supported measurement types. If a listener does not support a given type, the measurement is skipped.
Gets or sets a for . If , byte measurements are skipped.
Gets or sets a for . If , short measurements are skipped.
Gets or sets a for . If , int measurements are skipped.
Gets or sets a for . If , long measurements are skipped.
Gets or sets a for . If , float measurements are skipped.
Gets or sets a for . If , double measurements are skipped.
Gets or sets a for . If , decimal measurements are skipped.
Represents scopes used by to distinguish between meters created via constructors ()
and those created via Dependency Injection with ().
No scope is specified. This field should not be used.
Indicates instances created via constructors.
Indicates instances created via Dependency Injection with .
Extension methods for to add or clear registrations, and to enable or disable metrics.
Extension methods for to add or clear registrations, and to enable or disable metrics.
Registers a new of type .
The implementation type of the listener.
The .
Returns the original for chaining.
Registers a new instance.
The implementation type of the listener.
The .
Returns the original for chaining.
Removes all registrations from the dependency injection container.
The .
Returns the original for chaining.
Enables all instruments for the given meter, for all registered listeners.
The .
The or prefix. A null value matches all meters.
The original for chaining.
Enables a specified for the given and .
The .
The or prefix. A null value matches all meters.
The . A null value matches all instruments.
The .Name. A null value matches all listeners.
Indicates which meter scopes to consider. Defaults to all scopes.
The original for chaining.
Enables all instruments for the given meter, for all registered listeners.
The .
The or prefix. A null value matches all meters.
The original for chaining.
Enables a specified for the given and .
The .
The or prefix. A null value matches all meters.
The . A null value matches all instruments.
The .Name. A null value matches all listeners.
Indicates which meter scopes to consider. Default to all scopes.
The original for chaining.
Disables all instruments for the given meter, for all registered listeners.
The .
The or prefix. A null value matches all meters.
The original for chaining.
Disables a specified for the given and .
The .
The or prefix. A null value matches all meters.
The . A null value matches all instruments.
The .Name. A null value matches all listeners.
Indicates which meter scopes to consider. Defaults to all scopes.
The original for chaining.
Disables all instruments for the given meter, for all registered listeners.
The .
The or prefix. A null value matches all meters.
The original for chaining.
Disables a specified for the given and .
The .
The or prefix. A null value matches all meters.
The . A null value matches all instruments.
The .Name. A null value matches all listeners.
Indicates which meter scopes to consider. Defaults to all scopes.
The original for chaining.
Represents options for configuring the metrics system.
Gets a list of instrument rules that identifies which metrics, instruments, and listeners are enabled.
Pretty print a type name.
The .
true to print a fully qualified name.
true to include generic parameter names.
true to include generic parameters.
Character to use as a delimiter in nested type names
The pretty printed type name.