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