Class LogStatelessMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.otlp.logs.LogStatelessMarshaler
- All Implemented Interfaces:
StatelessMarshaler<LogRecordData>
See
LogMarshaler
.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final LogStatelessMarshaler
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBinarySerializedSize
(LogRecordData log, MarshalerContext context) Returns the number of bytes marshaling given value will write in proto binary format.void
writeTo
(Serializer output, LogRecordData log, MarshalerContext context) Marshal given value using the providedSerializer
.
-
Field Details
-
INVALID_TRACE_ID
-
INVALID_SPAN_ID
-
INSTANCE
-
-
Constructor Details
-
LogStatelessMarshaler
LogStatelessMarshaler()
-
-
Method Details
-
writeTo
public void writeTo(Serializer output, LogRecordData log, MarshalerContext context) throws IOException Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<LogRecordData>
- Throws:
IOException
-
getBinarySerializedSize
Description copied from interface:StatelessMarshaler
Returns the number of bytes marshaling given value will write in proto binary format.- Specified by:
getBinarySerializedSize
in interfaceStatelessMarshaler<LogRecordData>
-