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 SpanContext
private final long
private final ExemplarData
private final ProtoFieldInfo
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ExemplarMarshaler
(long timeUnixNano, ExemplarData value, ProtoFieldInfo valueField, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateSize
(long timeUnixNano, ProtoFieldInfo valueField, ExemplarData value, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) (package private) static ExemplarMarshaler
create
(ExemplarData exemplar) (package private) static ExemplarMarshaler[]
createRepeated
(List<? extends ExemplarData> exemplars) (package private) static ProtoFieldInfo
toProtoExemplarValueType
(ExemplarData exemplar) 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
-
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:
writeTo
in classMarshaler
- Throws:
IOException
-
calculateSize
private static int calculateSize(long timeUnixNano, ProtoFieldInfo valueField, ExemplarData value, SpanContext spanContext, KeyValueMarshaler[] filteredAttributeMarshalers) -
toProtoExemplarValueType
-