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.
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 non-public constructors, including those inherited from base classes.
Specifies all non-public methods, including those inherited from base classes.
Specifies all non-public fields, including those inherited from base classes.
Specifies all non-public nested types, including those inherited from base classes.
Specifies all non-public properties, including those inherited from base classes.
Specifies all non-public events, including those inherited from base classes.
Specifies all public constructors, including those inherited from base classes.
Specifies all public nested types, including those inherited from base classes.
Specifies all constructors, including those inherited from base classes.
Specifies all methods, including those inherited from base classes.
Specifies all fields, including those inherited from base classes.
Specifies all nested types, including those inherited from base classes.
Specifies all properties, including those inherited from base classes.
Specifies all events, including those inherited from base classes.
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 field or property member 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 field and property members 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.
When applied to an attribute class, instructs the compiler to flow applications of that attribute,
from source code down to compiler-generated symbols. This can help IL-based analysis tools.
One example where this attribute applies is in C# primary constructor parameters. If an attribute
marked with gets applied to a primary constructor
parameter, the attribute will also be applied to any compiler-generated fields storing that parameter.
Initializes a new instance of the class.
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 supplying a specific marshaller in .
Use the platform-provided UTF-8 marshaller.
Use the platform-provided UTF-16 marshaller.
Provides downlevel polyfills for static methods on Exception-derived types.