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

Microsoft.ApplicationInsights.Metrics.Extensibility.IMetricTelemetryPipeline

public interface IMetricTelemetryPipeline
Represents an eventual destination for metric telemetry. For example, an Application Insights telemetry pipeline, a file or some other ingestion point.
namespace Microsoft.ApplicationInsights.Metrics.Extensibility { public interface IMetricTelemetryPipeline { Task TrackAsync(MetricAggregate metricAggregate, CancellationToken cancelToken); Task FlushAsync(CancellationToken cancelToken); } }