Microsoft.Extensions.Diagnostics.Metrics.IMetricsBuilder
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.