Class AnyValueStatelessMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.otlp.AnyValueStatelessMarshaler
- All Implemented Interfaces:
StatelessMarshaler<Value<?>>
public final class AnyValueStatelessMarshaler
extends Object
implements StatelessMarshaler<Value<?>>
A Marshaler of key value pairs. See
AnyValueMarshaler
.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getBinarySerializedSize
(Value<?> value, MarshalerContext context) Returns the number of bytes marshaling given value will write in proto binary format.void
writeTo
(Serializer output, Value<?> value, MarshalerContext context) Marshal given value using the providedSerializer
.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
AnyValueStatelessMarshaler
private AnyValueStatelessMarshaler()
-
-
Method Details
-
writeTo
Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<Value<?>>
- 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<Value<?>>
-