Class LowAllocationTraceRequestMarshaler

java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.otlp.traces.LowAllocationTraceRequestMarshaler

public final class LowAllocationTraceRequestMarshaler extends Marshaler
Marshaler to convert SDK SpanData to OTLP ExportTraceServiceRequest. See TraceRequestMarshaler.

Example usage:


 void marshal(LowAllocationTraceRequestMarshaler requestMarshaler, OutputStream output,
     List<SpanData> spanList) throws IOException {
   requestMarshaler.initialize(spanList);
   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.