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