Table of Contents

Class OtlpExporterOptions

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

OpenTelemetry Protocol (OTLP) exporter options.

public class OtlpExporterOptions
Inheritance
OtlpExporterOptions
Inherited Members

Remarks

Note: OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS, OTEL_EXPORTER_OTLP_TIMEOUT, and OTEL_EXPORTER_OTLP_PROTOCOL environment variables are parsed during object construction.

Constructors

OtlpExporterOptions()

Initializes a new instance of the OtlpExporterOptions class.

public OtlpExporterOptions()

Properties

BatchExportProcessorOptions

Gets or sets the BatchExportProcessor options. Ignored unless ExportProcessorType is Batch.

public BatchExportProcessorOptions<Activity> BatchExportProcessorOptions { get; set; }

Property Value

BatchExportProcessorOptions<Activity>

Remarks

Note: This only applies when exporting traces.

Endpoint

public Uri Endpoint { get; set; }

Property Value

Uri

ExportProcessorType

Gets or sets the export processor type to be used with the OpenTelemetry Protocol Exporter. The default value is OpenTelemetry.ExportProcessorType.Batch.

public ExportProcessorType ExportProcessorType { get; set; }

Property Value

ExportProcessorType

Remarks

Note: This only applies when exporting traces.

Headers

public string? Headers { get; set; }

Property Value

string

HttpClientFactory

public Func<HttpClient> HttpClientFactory { get; set; }

Property Value

Func<HttpClient>

Protocol

public OtlpExportProtocol Protocol { get; set; }

Property Value

OtlpExportProtocol

TimeoutMilliseconds

public int TimeoutMilliseconds { get; set; }

Property Value

int