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 int
calculateSize
(byte[] valueUtf8) (package private) static MarshalerWithSize
void
writeTo
(Serializer output) Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSize
Methods inherited from class io.opentelemetry.exporter.internal.marshal.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:
writeTo
in classMarshaler
- Throws:
IOException
-
calculateSize
private static int calculateSize(byte[] valueUtf8)
-