Class ResourceLogsStatelessMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.otlp.logs.ResourceLogsStatelessMarshaler
- All Implemented Interfaces:
StatelessMarshaler2<Resource, Map<InstrumentationScopeInfo, List<LogRecordData>>>
public final class ResourceLogsStatelessMarshaler
extends Object
implements StatelessMarshaler2<Resource, Map<InstrumentationScopeInfo, List<LogRecordData>>>
A Marshaler of ResourceLogs. See
ResourceLogsMarshaler.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final ResourceLogsStatelessMarshalerprivate static final MarshalerContext.Keyprivate static final MarshalerContext.Key -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) Returns the number of bytes this Marshaler will write.voidwriteTo(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) Marshal given key and value using the providedSerializer.
-
Field Details
-
INSTANCE
-
SCOPE_LOG_WRITER_KEY
-
SCOPE_LOG_SIZE_CALCULATOR_KEY
-
-
Constructor Details
-
ResourceLogsStatelessMarshaler
public ResourceLogsStatelessMarshaler()
-
-
Method Details
-
writeTo
public void writeTo(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) throws IOException Description copied from interface:StatelessMarshaler2Marshal given key and value using the providedSerializer.- Specified by:
writeToin interfaceStatelessMarshaler2<Resource, Map<InstrumentationScopeInfo, List<LogRecordData>>>- Throws:
IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<LogRecordData>> scopeMap, MarshalerContext context) Description copied from interface:StatelessMarshaler2Returns the number of bytes this Marshaler will write.- Specified by:
getBinarySerializedSizein interfaceStatelessMarshaler2<Resource, Map<InstrumentationScopeInfo, List<LogRecordData>>>
-