Table of Contents

Class OtlpLogExporter

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

Exporter consuming OpenTelemetry.Logs.LogRecord and exporting the data using the OpenTelemetry protocol (OTLP).

public sealed class OtlpLogExporter : BaseExporter<LogRecord>
Inheritance
OtlpLogExporter

Constructors

OtlpLogExporter(OtlpExporterOptions)

Initializes a new instance of the OtlpLogExporter class.

public OtlpLogExporter(OtlpExporterOptions options)

Parameters

options OtlpExporterOptions

Configuration options for the exporter.

Methods

Export(in Batch<LogRecord>)

public override ExportResult Export(in Batch<LogRecord> logRecordBatch)

Parameters

logRecordBatch Batch<LogRecord>

Returns

ExportResult

OnShutdown(int)

protected override bool OnShutdown(int timeoutMilliseconds)

Parameters

timeoutMilliseconds int

Returns

bool