<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.19.0" />

OpenTelemetry.Metrics.OtlpMetricExporterExtensions

public static class OtlpMetricExporterExtensions
Extension methods to simplify registering of the OpenTelemetry Protocol (OTLP) exporter.
public static MeterProviderBuilder AddOtlpExporter(this MeterProviderBuilder builder)

Adds OtlpMetricExporter to the MeterProviderBuilder using default options.

public static MeterProviderBuilder AddOtlpExporter(this MeterProviderBuilder builder, Action<OtlpExporterOptions> configure)

Adds OtlpMetricExporter to the MeterProviderBuilder.

public static MeterProviderBuilder AddOtlpExporter(this MeterProviderBuilder builder, string name, Action<OtlpExporterOptions> configure)

Adds OtlpMetricExporter to the MeterProviderBuilder.

public static MeterProviderBuilder AddOtlpExporter(this MeterProviderBuilder builder, Action<OtlpExporterOptions, MetricReaderOptions> configureExporterAndMetricReader)

Adds OtlpMetricExporter to the MeterProviderBuilder.

public static MeterProviderBuilder AddOtlpExporter(this MeterProviderBuilder builder, string name, Action<OtlpExporterOptions, MetricReaderOptions> configureExporterAndMetricReader)

Adds OtlpMetricExporter to the MeterProviderBuilder.