Table of Contents

Class OtlpMetricExporter

Namespace
OpenTelemetry.Exporter
Assembly
OpenTelemetry.Exporter.OpenTelemetryProtocol.dll

Exporter consuming OpenTelemetry.Metrics.Metric and exporting the data using the OpenTelemetry protocol (OTLP).

public class OtlpMetricExporter : BaseExporter<Metric>
Inheritance
OtlpMetricExporter

Constructors

OtlpMetricExporter(OtlpExporterOptions)

Initializes a new instance of the OtlpMetricExporter class.

public OtlpMetricExporter(OtlpExporterOptions options)

Parameters

options OtlpExporterOptions

Configuration options for the exporter.

Methods

Export(in Batch<Metric>)

public override ExportResult Export(in Batch<Metric> metrics)

Parameters

metrics Batch<Metric>

Returns

ExportResult

OnShutdown(int)

protected override bool OnShutdown(int timeoutMilliseconds)

Parameters

timeoutMilliseconds int

Returns

bool