Class ExemplarMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.metrics.ExemplarMarshaler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyValueMarshaler[]private final SpanContextprivate final longprivate final ExemplarDataprivate final ProtoFieldInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExemplarMarshaler(long timeUnixNano, ExemplarData value, ProtoFieldInfo valueField, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateSize(long timeUnixNano, ProtoFieldInfo valueField, ExemplarData value, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) (package private) static ExemplarMarshalercreate(ExemplarData exemplar) (package private) static ExemplarMarshaler[]createRepeated(List<? extends ExemplarData> exemplars) (package private) static ProtoFieldInfotoProtoExemplarValueType(ExemplarData exemplar) voidwriteTo(Serializer output) Methods inherited from class MarshalerWithSize
getBinarySerializedSizeMethods inherited from class Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
timeUnixNano
private final long timeUnixNano -
value
-
valueField
-
spanContext
-
filteredAttributeMarshalers
-
-
Constructor Details
-
ExemplarMarshaler
private ExemplarMarshaler(long timeUnixNano, ExemplarData value, ProtoFieldInfo valueField, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers)
-
-
Method Details
-
createRepeated
-
create
-
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-
calculateSize
private static int calculateSize(long timeUnixNano, ProtoFieldInfo valueField, ExemplarData value, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) -
toProtoExemplarValueType
-