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
Marshaler
to convert SDKLogRecordData
to 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 private
LogsRequestMarshaler(ResourceLogsMarshaler[] resourceLogsMarshalers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LogsRequestMarshaler
create(java.util.Collection<LogRecordData> logs)
Returns aLogsRequestMarshaler
that can be used to convert the providedSpanData
into a serialized OTLP ExportLogsServiceRequest.void
writeTo(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 aLogsRequestMarshaler
that can be used to convert the providedSpanData
into a serialized OTLP ExportLogsServiceRequest.
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
-