Microsoft.Extensions.Diagnostics
contains the default implementation of meter factory and extension methods for registering this default meter factory to the DI.
Commonly Used APIS:
- MetricsServiceExtensions.AddMetrics(this IServiceCollection services)
- MeterFactoryExtensions.Create(this IMeterFactory, string name, string? version = null, IEnumerable<KeyValuePair<string,object?>> tags = null, object? scope = null)
- MetricsBuilderConfigurationExtensions.AddConfiguration(this IMetricsBuilder builder, IConfiguration configuration)
The APIs and functionality are mature, but do get extended occasionally.
Microsoft.Extensions.Diagnostics is included in the ASP.NET Core shared framework. The package is deployed as out-of-band (OOB) too and can be referenced into projects directly.