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