Class LogStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.logs.LogStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler<LogRecordData>
final class LogStatelessMarshaler extends java.lang.Object implements StatelessMarshaler<LogRecordData>
SeeLogMarshaler
.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static LogStatelessMarshaler
INSTANCE
private static java.lang.String
INVALID_SPAN_ID
private static java.lang.String
INVALID_TRACE_ID
-
Constructor Summary
Constructors Constructor Description LogStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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 Detail
-
INVALID_TRACE_ID
private static final java.lang.String INVALID_TRACE_ID
-
INVALID_SPAN_ID
private static final java.lang.String INVALID_SPAN_ID
-
INSTANCE
static final LogStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, LogRecordData log, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<LogRecordData>
- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(LogRecordData log, MarshalerContext context)
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>
-
-