Skip to content

AppInsightsMetricForwarder Class

Definition

Forwards metric data to AppInsights.

C#
public static class AppInsightsMetricForwarder

Inheritance object

Methods

OnMeasurementRecorded(Instrument, T, ReadOnlySpan<KeyValuePair<string, object?>>, object?)

Records a measurement for the given instrument.

C#
public static void OnMeasurementRecorded<T>(Instrument instrument, T measurement, ReadOnlySpan<KeyValuePair<string, object?>> tags, object? state)

Parameters

instrument Instrument
The instrument.

measurement T
The measurement.

tags ReadOnlySpan<KeyValuePair<string, object>>
Tags specified for the measurement.

state object
The AppInsights telemetry client.