Class InstrumentationScopeLogsStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.logs.InstrumentationScopeLogsStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler2<InstrumentationScopeInfo,java.util.List<LogRecordData>>
final class InstrumentationScopeLogsStatelessMarshaler extends java.lang.Object implements StatelessMarshaler2<InstrumentationScopeInfo,java.util.List<LogRecordData>>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static InstrumentationScopeLogsStatelessMarshaler
INSTANCE
-
Constructor Summary
Constructors Constructor Description InstrumentationScopeLogsStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBinarySerializedSize(InstrumentationScopeInfo instrumentationScope, java.util.List<LogRecordData> logs, MarshalerContext context)
Returns the number of bytes this Marshaler will write.void
writeTo(Serializer output, InstrumentationScopeInfo instrumentationScope, java.util.List<LogRecordData> logs, MarshalerContext context)
Marshal given key and value using the providedSerializer
.
-
-
-
Field Detail
-
INSTANCE
static final InstrumentationScopeLogsStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, InstrumentationScopeInfo instrumentationScope, java.util.List<LogRecordData> logs, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshaler2
Marshal given key and value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler2<InstrumentationScopeInfo,java.util.List<LogRecordData>>
- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(InstrumentationScopeInfo instrumentationScope, java.util.List<LogRecordData> logs, MarshalerContext context)
Description copied from interface:StatelessMarshaler2
Returns the number of bytes this Marshaler will write.- Specified by:
getBinarySerializedSize
in interfaceStatelessMarshaler2<InstrumentationScopeInfo,java.util.List<LogRecordData>>
-
-