Class SpanEventMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.traces.SpanEventMarshaler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyValueMarshaler[]
private final int
private static final SpanEventMarshaler[]
private final long
private final byte[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SpanEventMarshaler
(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateSize
(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount) (package private) static SpanEventMarshaler
(package private) static SpanEventMarshaler[]
createRepeated
(List<EventData> events) 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
-
EMPTY
-
epochNanos
private final long epochNanos -
name
private final byte[] name -
attributeMarshalers
-
droppedAttributesCount
private final int droppedAttributesCount
-
-
Constructor Details
-
SpanEventMarshaler
private SpanEventMarshaler(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount)
-
-
Method Details
-
createRepeated
-
create
-
writeTo
- Specified by:
writeTo
in classMarshaler
- Throws:
IOException
-
calculateSize
private static int calculateSize(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount)
-