IMetricsBuilder Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures the metrics system by registering IMetricsListeners and using rules to determine which metrics are enabled.
public interface class IMetricsBuilder
public interface IMetricsBuilder
type IMetricsBuilder = interface
Public Interface IMetricsBuilder
Properties
Services |
Gets the application service collection that's used by extension methods to register services. |
Extension Methods
AddConfiguration(IMetricsBuilder, IConfiguration) |
Reads metrics configuration from the provided IConfiguration section and configures which Meters, Instruments, and IMetricsListeners are enabled. |
AddDebugConsole(IMetricsBuilder) |
Enables console output for metrics for debugging purposes. This is not recommended for production use. |
AddListener(IMetricsBuilder, IMetricsListener) |
Registers a new IMetricsListener instance. |
AddListener<T>(IMetricsBuilder) |
Registers a new IMetricsListener of type |
ClearListeners(IMetricsBuilder) |
Removes all IMetricsListener registrations from the dependency injection container. |
DisableMetrics(IMetricsBuilder, String, String, String, MeterScope) |
Disables a specified Instrument for the given Meter and IMetricsListener. |
DisableMetrics(IMetricsBuilder, String) |
Disables all instruments for the given meter, for all registered listeners. |
EnableMetrics(IMetricsBuilder, String, String, String, MeterScope) |
Enables a specified Instrument for the given Meter and IMetricsListener. |
EnableMetrics(IMetricsBuilder, String) |
Enables all instruments for the given meter, for all registered listeners. |
Applies to
.NET