Class KeyValueMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.KeyValueMarshaler
A Marshaler of key value pairs.
This class is internal and is hence not for public use. Its APIs are unstable and can change at any time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic KeyValueMarshaler[]createForAttributes(Attributes attributes) Returns Marshalers for the given Attributes.static KeyValueMarshalercreateForKeyValue(KeyValue keyValue) Returns Marshaler for the given KeyValue.voidwriteTo(Serializer output) Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSizeMethods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Method Details
-
createForKeyValue
Returns Marshaler for the given KeyValue. -
createForAttributes
Returns Marshalers for the given Attributes. -
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-