<PackageReference Include="Serilog.Sinks.OpenTelemetry" Version="4.2.1-dev-02324" />

Serilog.Sinks.OpenTelemetry.OpenTelemetryTracesSink

class OpenTelemetryTracesSink : IBatchedLogEventSink, ILogEventSink
public OpenTelemetryTracesSink(IExporter exporter, IReadOnlyDictionary<string, object> resourceAttributes, IncludedData includedData)

public void Emit(LogEvent logEvent)

Transforms and sends the given LogEvent to an OTLP endpoint.

public Task EmitBatchAsync(IReadOnlyCollection<LogEvent> batch)

Transforms and sends the given batch of LogEvent objects to an OTLP endpoint.

A no-op for an empty batch.