Microsoft.ApplicationInsights.Metrics.Extensibility.TelemetryClientExtensions
Metric related extension methods for the TelemetryClient.
Note that these APIs are in the ...Extensibility namespace and do not pollute the API surfact for users who do not import it.
public static MetricManager GetMetricManager(this TelemetryClient telemetryClient, MetricAggregationScope aggregationScope)
Gets the MetricManager for this TelemetryClient at the specified scope.
If a metric manager does not exist at the specified scope, it is created.