Class 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.