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 TypeMethodDescriptionintgetBinarySerializedSize(String value, MarshalerContext context) Returns the number of bytes marshaling given value will write in proto binary format.voidwriteTo(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:StatelessMarshalerMarshal given value using the providedSerializer.- Specified by:
writeToin interfaceStatelessMarshaler<String>- Throws:
IOException
-
getBinarySerializedSize
Description copied from interface:StatelessMarshalerReturns the number of bytes marshaling given value will write in proto binary format.- Specified by:
getBinarySerializedSizein interfaceStatelessMarshaler<String>
-