Microsoft.Extensions.Diagnostics.Abstractions
Represents a type used to configure the metrics system by registering IMetricsListeners and using rules
to determine which metrics are enabled.
The application . This is used by extension methods to register services.
Represents a type used to listen to metrics emitted from the system.
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 .
Returns true if the listener wants to subscribe to this instrument, otherwise false.
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 .
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 .
- InstrumentName, an exact match. .
- ListenerName, an exact match. .
- Scopes
The or prefix.
The .
The .
The 's to consider.
Enables or disabled the matched instrument for this listener.
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 .
- InstrumentName, an exact match. .
- ListenerName, an exact match. .
- Scopes
The or prefix.
The .
The .
The 's to consider.
Enables or disabled the matched instrument for this listener.
The , either an exact match or the longest prefix match. Only full segment matches are considered.
All meters are matched if this is null.
The , an exact match.
All instruments for the given meter are matched if this is null.
The , an exact match.
All listeners are matched if this is null.
The . This is used to distinguish between meters created via constructors ()
and those created via Dependency Injection with ()."/>.
Indicates if 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 's.
A set of supported measurement types. If a listener does not support a given type, the measurement will be skipped.
A for . If null, byte measurements will be skipped.
A for . If null, short measurements will be skipped.
A for . If null, int measurements will be skipped.
A for . If null, long measurements will be skipped.
A for . If null, float measurements will be skipped.
A for . If null, double measurements will be skipped.
A for . If null, decimal measurements will be skipped.
This is used by to distinguish between meters created via constructors ()
and those created via Dependency Injection with ()."/>.
No scope is specified. This 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 's for the given meter, for all registered 's.
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 's to consider. Default to all scopes.
The original for chaining.
Enables all 's for the given meter, for all registered 's.
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 's to consider. Default to all scopes.
The original for chaining.
Disables all 's for the given meter, for all registered 's.
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 's to consider. Default to all scopes.
The original for chaining.
Disables all 's for the given meter, for all registered 's.
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 's to consider. Default to all scopes.
The original for chaining.
Options for configuring the metrics system.
A list of 's that identify 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.
Throws an if is null.
The reference type argument to validate as non-null.
The name of the parameter with which corresponds.
Throws either an or an
if the specified string is or whitespace respectively.
String to be checked for or whitespace.
The name of the parameter being checked.
The original value of .