Class StringAnyValueMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.StringAnyValueMarshaler
A Marshaler of string-valued
AnyValue.
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 TypeMethodDescriptionprivate static intcalculateSize(byte[] valueUtf8) (package private) static MarshalerWithSizevoidwriteTo(Serializer output) Methods inherited from class MarshalerWithSize
getBinarySerializedSizeMethods inherited from class Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
valueUtf8
private final byte[] valueUtf8
-
-
Constructor Details
-
StringAnyValueMarshaler
private StringAnyValueMarshaler(byte[] valueUtf8)
-
-
Method Details
-
create
-
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-
calculateSize
private static int calculateSize(byte[] valueUtf8)
-