<PackageReference Include="OpenTelemetry" Version="1.11.2" />

OpenTelemetry.Metrics.MetricTypeExtensions

public static class MetricTypeExtensions
Contains extension methods for performing common operations against the MetricType class.
public static bool IsDouble(this MetricType self)

Determines if the supplied MetricType is a double definition.

public static bool IsGauge(this MetricType self)

Determines if the supplied MetricType is a gauge definition.

public static bool IsHistogram(this MetricType self)

Determines if the supplied MetricType is a histogram definition.

public static bool IsLong(this MetricType self)

Determines if the supplied MetricType is a long definition.

public static bool IsSum(this MetricType self)

Determines if the supplied MetricType is a sum definition.