Microsoft.Extensions.Diagnostics
Used to retrieve the metrics configuration for any listener name.
Gets the configuration for the given listener.
The name of listener.
The configuration for this listener type.
Extensions for for enabling metrics based on .
Reads metrics configuration from the provided section and configures
which Meters, Instruments, and IMetricsListeners are enabled.
The .
The section to load.
The original for chaining.
Provides constants for the Console metrics listener.
Gets the name of the listener used in configuration and enabling instruments.
IMetricsBuilder extension methods for console output.
Enables console output for metrics for debugging purposes. This is not recommended for production use.
The metrics builder.
The original metrics builder for chaining.
Extension methods for setting up metrics services in an .
Adds metrics services to the specified .
The to add services to.
The so that additional calls can be chained.
Adds metrics services to the specified .
The to add services to.
A callback to configure the .
The so that additional calls can be chained.
Compares two tag collections for equality.
The first collection of tags. it has to be a sorted List
The second collection of tags. This one doesn't have to be sorted nor be specific collection type
True if the two collections are equal, false otherwise
This method is used to compare two collections of tags for equality. The first collection is expected to be a sorted array
of tags. The second collection can be any collection of tags.
we avoid the allocation of a new array by using the second collection as is and not converting it to an array. the reason
is we call this every time we try to create a meter or instrument and we don't want to allocate a new array every time.
The meter factory does not allow a custom scope value when creating a meter.
Only one wildcard character is allowed in category name.