Class StringAnyValueStatelessMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.otlp.StringAnyValueStatelessMarshaler
- All Implemented Interfaces:
StatelessMarshaler<String>
A Marshaler of string-valued
AnyValue
. See StringAnyValueMarshaler
.
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
(String value, MarshalerContext context) Returns the number of bytes marshaling given value will write in proto binary format.void
writeTo
(Serializer output, String value, MarshalerContext context) Marshal given value using the providedSerializer
.
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
StringAnyValueStatelessMarshaler
private StringAnyValueStatelessMarshaler()
-
-
Method Details
-
writeTo
Description copied from interface:StatelessMarshaler
Marshal given value using the providedSerializer
.- Specified by:
writeTo
in interfaceStatelessMarshaler<String>
- 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<String>
-