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

Microsoft.ApplicationInsights.Metrics.Extensibility.ApplicationInsightsTelemetryPipeline

An adapter that represents the Application Insights SDK pipelie towards the Metrics Aggregation SDK subsystem.

Creaes a new Application Insights telemetry pipeline adapter.

Creaes a new Application Insights telemetry pipeline adapter.

public Task FlushAsync(CancellationToken cancelToken)

Flushes the Application Insights pipeline used by this adaptor.

public Task TrackAsync(MetricAggregate metricAggregate, CancellationToken cancelToken)

Send a metric aggregate to the cloud using the local Application Insights pipeline.