Class LogsRequestMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.logs.LogsRequestMarshaler
Marshaler to convert SDK LogRecordData 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 -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateLogsRequestMarshaler(ResourceLogsMarshaler[] resourceLogsMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionstatic LogsRequestMarshalercreate(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
getBinarySerializedSizeMethods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
resourceLogsMarshalers
-
-
Constructor Details
-
LogsRequestMarshaler
-
-
Method Details
-
create
Returns aLogsRequestMarshalerthat can be used to convert the providedSpanDatainto a serialized OTLP ExportLogsServiceRequest. -
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-