Class ResourceSpansStatelessMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.otlp.traces.ResourceSpansStatelessMarshaler
- All Implemented Interfaces:
StatelessMarshaler2<Resource, Map<InstrumentationScopeInfo, List<SpanData>>>
public final class ResourceSpansStatelessMarshaler
extends Object
implements StatelessMarshaler2<Resource, Map<InstrumentationScopeInfo, List<SpanData>>>
A Marshaler of ResourceSpans. See
ResourceSpansMarshaler.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionintgetBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context) Returns the number of bytes this Marshaler will write.voidwriteTo(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context) Marshal given key and value using the providedSerializer.
-
Method Details
-
writeTo
public void writeTo(Serializer output, Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> 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<SpanData>>>- Throws:
IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(Resource resource, Map<InstrumentationScopeInfo, List<SpanData>> scopeMap, MarshalerContext context) Description copied from interface:StatelessMarshaler2Returns the number of bytes this Marshaler will write.- Specified by:
getBinarySerializedSizein interfaceStatelessMarshaler2<Resource, Map<InstrumentationScopeInfo, List<SpanData>>>
-