Class LowAllocationLogsRequestMarshaler

java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.otlp.logs.LowAllocationLogsRequestMarshaler

public final class LowAllocationLogsRequestMarshaler extends Marshaler
Marshaler to convert SDK LogRecordData to OTLP ExportLogsServiceRequest. See LogsRequestMarshaler.

Example usage:

void marshal(LowAllocationLogRequestMarshaler requestMarshaler, OutputStream output,
    List<LogRecordData> logDataList) throws IOException {
  requestMarshaler.initialize(logDataList);
  try {
    requestMarshaler.writeBinaryTo(output);
  } finally {
    requestMarshaler.reset();
  }
}

This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.