Class AnyValueStatelessMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.otlp.AnyValueStatelessMarshaler
-
- All Implemented Interfaces:
StatelessMarshaler<Value<?>>
public final class AnyValueStatelessMarshaler extends java.lang.Object implements StatelessMarshaler<Value<?>>
A Marshaler of key value pairs. SeeAnyValueMarshaler
.This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
-
Field Summary
Fields Modifier and Type Field Description static AnyValueStatelessMarshaler
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
AnyValueStatelessMarshaler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
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 Detail
-
INSTANCE
public static final AnyValueStatelessMarshaler INSTANCE
-
-
Method Detail
-
writeTo
public void writeTo(Serializer output, Value<?> value, MarshalerContext context) throws java.io.IOException
Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<Value<?>>
- Throws:
java.io.IOException
-
getBinarySerializedSize
public int getBinarySerializedSize(Value<?> value, MarshalerContext context)
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<?>>
-
-