Class SpanEventStatelessMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.otlp.traces.SpanEventStatelessMarshaler
- All Implemented Interfaces:
StatelessMarshaler<EventData>
See
SpanEventMarshaler
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBinarySerializedSize
(EventData event, MarshalerContext context) Returns the number of bytes marshaling given value will write in proto binary format.void
writeTo
(Serializer output, EventData event, MarshalerContext context) Marshal given value using the providedSerializer
.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
SpanEventStatelessMarshaler
private SpanEventStatelessMarshaler()
-
-
Method Details
-
writeTo
public void writeTo(Serializer output, EventData event, MarshalerContext context) throws IOException Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<EventData>
- Throws:
IOException
-
getBinarySerializedSize
Description copied from interface:StatelessMarshaler
Returns the number of bytes marshaling given value will write in proto binary format.- Specified by:
getBinarySerializedSize
in interfaceStatelessMarshaler<EventData>
-