Class LogsRequestMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.Marshaler
-
- io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
-
- io.opentelemetry.exporter.internal.otlp.logs.LogsRequestMarshaler
-
public final class LogsRequestMarshaler extends MarshalerWithSize
Marshalerto convert SDKLogRecordDatato OTLP ExportLogsServiceRequest.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLogsMarshaler[]resourceLogsMarshalers
-
Constructor Summary
Constructors Modifier Constructor Description privateLogsRequestMarshaler(ResourceLogsMarshaler[] resourceLogsMarshalers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogsRequestMarshalercreate(java.util.Collection<LogRecordData> logs)Returns aLogsRequestMarshalerthat can be used to convert the providedSpanDatainto a serialized OTLP ExportLogsServiceRequest.voidwriteTo(Serializer output)-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSize
-
Methods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
-
-
-
Field Detail
-
resourceLogsMarshalers
private final ResourceLogsMarshaler[] resourceLogsMarshalers
-
-
Constructor Detail
-
LogsRequestMarshaler
private LogsRequestMarshaler(ResourceLogsMarshaler[] resourceLogsMarshalers)
-
-
Method Detail
-
create
public static LogsRequestMarshaler create(java.util.Collection<LogRecordData> logs)
Returns aLogsRequestMarshalerthat can be used to convert the providedSpanDatainto a serialized OTLP ExportLogsServiceRequest.
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
-