<PackageReference Include="Microsoft.ApplicationInsights" Version="2.23.0" />

Microsoft.ApplicationInsights.Metrics.Extensibility.MetricManagerExtensions

Some methods on MetricManager.AggregationManager need public access. However, the property AggregationManager on MetricManager is not public, nor is the type of that property (MetricAggregationManager). This class exposes the necesary APIs in a specialized namespace, while avoiding polluting the API surface shown by Intellisense for users who do not import the ...Extensibility namespace.
namespace Microsoft.ApplicationInsights.Metrics.Extensibility { internal static class MetricManagerExtensions { public static AggregationPeriodSummary StopAggregators(this MetricManager metricManager, MetricAggregationCycleKind aggregationCycleKind, DateTimeOffset tactTimestamp); public static AggregationPeriodSummary StartOrCycleAggregators(this MetricManager metricManager, MetricAggregationCycleKind aggregationCycleKind, DateTimeOffset tactTimestamp, IMetricSeriesFilter futureFilter); public static Task StopDefaultAggregationCycleAsync(this MetricManager metricManager); } }