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 .
Attribute used to indicate a source generator should create a function for marshalling
arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time.
This attribute is meaningless if the source generator associated with it is not enabled.
The current built-in source generator only supports C# and only supplies an implementation when
applied to static, partial, non-generic methods.
Initializes a new instance of the .
Name of the library containing the import.
Gets the name of the library containing the import.
Gets or sets the name of the entry point to be called.
Gets or sets how to marshal string arguments to the method.
If this field is set to a value other than ,
must not be specified.
Gets or sets the used to control how string arguments to the method are marshalled.
If this field is specified, must not be specified
or must be set to .
Gets or sets whether the callee sets an error (SetLastError on Windows or errno
on other platforms) before returning from the attributed method.
Specifies how strings should be marshalled for generated p/invokes
Indicates the user is suppling a specific marshaller in .
Use the platform-provided UTF-8 marshaller.
Use the platform-provided UTF-16 marshaller.
Indicates that certain members on a specified are accessed dynamically,
for example through .
This allows tools to understand which members are being accessed during the execution
of a program.
This attribute is valid on members whose type is or .
When this attribute is applied to a location of type , the assumption is
that the string represents a fully qualified type name.
When this attribute is applied to a class, interface, or struct, the members specified
can be accessed dynamically on instances returned from calling
on instances of that class, interface, or struct.
If the attribute is applied to a method it's treated as a special case and it implies
the attribute should be applied to the "this" parameter of the method. As such the attribute
should only be used on instance methods of types assignable to System.Type (or string, but no methods
will use it there).
Initializes a new instance of the class
with the specified member types.
The types of members dynamically accessed.
Gets the which specifies the type
of members dynamically accessed.
Specifies the types of members that are dynamically accessed.
This enumeration has a attribute that allows a
bitwise combination of its member values.
Specifies no members.
Specifies the default, parameterless public constructor.
Specifies all public constructors.
Specifies all non-public constructors.
Specifies all public methods.
Specifies all non-public methods.
Specifies all public fields.
Specifies all non-public fields.
Specifies all public nested types.
Specifies all non-public nested types.
Specifies all public properties.
Specifies all non-public properties.
Specifies all public events.
Specifies all non-public events.
Specifies all interfaces implemented by the type.
Specifies all members.
Specifies that null is allowed as an input even if the corresponding type disallows it.
Specifies that null is disallowed as an input even if the corresponding type allows it.
Specifies that an output may be null even if the corresponding type disallows it.
Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns.
Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter may be null.
Gets the return value condition.
Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it.
Initializes the attribute with the specified return value condition.
The return value condition. If the method returns this value, the associated parameter will not be null.
Gets the return value condition.
Specifies that the output will be non-null if the named parameter is non-null.
Initializes the attribute with the associated parameter name.
The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null.
Gets the associated parameter name.
Applied to a method that will never return under any circumstance.
Specifies that the method will not return if the associated Boolean parameter is passed the specified value.
Initializes the attribute with the specified parameter value.
The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to
the associated parameter matches this value.
Gets the condition parameter value.
Specifies that the method or property will ensure that the listed field and property members have not-null values.
Initializes the attribute with a field or property member.
The field or property member that is promised to be not-null.
Initializes the attribute with the list of field and property members.
The list of field and property members that are promised to be not-null.
Gets field or property member names.
Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition.
Initializes the attribute with the specified return value condition and a field or property member.
The return value condition. If the method returns this value, the associated parameter will not be null.
The field or property member that is promised to be not-null.
Initializes the attribute with the specified return value condition and list of field and property members.
The return value condition. If the method returns this value, the associated parameter will not be null.
The list of field and property members that are promised to be not-null.
Gets the return value condition.
Gets field or property member names.