Class SpanEventMarshaler
- java.lang.Object
-
- io.opentelemetry.exporter.internal.marshal.Marshaler
-
- io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
-
- io.opentelemetry.exporter.internal.otlp.traces.SpanEventMarshaler
-
final class SpanEventMarshaler extends MarshalerWithSize
-
-
Field Summary
Fields Modifier and Type Field Description private KeyValueMarshaler[]
attributeMarshalers
private int
droppedAttributesCount
private static SpanEventMarshaler[]
EMPTY
private long
epochNanos
private byte[]
name
-
Constructor Summary
Constructors Modifier Constructor Description private
SpanEventMarshaler(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static int
calculateSize(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount)
(package private) static SpanEventMarshaler
create(EventData event)
(package private) static SpanEventMarshaler[]
createRepeated(java.util.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 Detail
-
EMPTY
private static final SpanEventMarshaler[] EMPTY
-
epochNanos
private final long epochNanos
-
name
private final byte[] name
-
attributeMarshalers
private final KeyValueMarshaler[] attributeMarshalers
-
droppedAttributesCount
private final int droppedAttributesCount
-
-
Constructor Detail
-
SpanEventMarshaler
private SpanEventMarshaler(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount)
-
-
Method Detail
-
createRepeated
static SpanEventMarshaler[] createRepeated(java.util.List<EventData> events)
-
create
static SpanEventMarshaler create(EventData event)
-
writeTo
public void writeTo(Serializer output) throws java.io.IOException
-
calculateSize
private static int calculateSize(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount)
-
-