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
ConstructorsModifierConstructorDescriptionprivate
LogsRequestMarshaler
(ResourceLogsMarshaler[] resourceLogsMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionstatic LogsRequestMarshaler
create
(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 Details
-
resourceLogsMarshalers
-
-
Constructor Details
-
LogsRequestMarshaler
-
-
Method Details
-
create
Returns aLogsRequestMarshaler
that can be used to convert the providedSpanData
into a serialized OTLP ExportLogsServiceRequest. -
writeTo
- Specified by:
writeTo
in classMarshaler
- Throws:
IOException
-