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 intprivate static final SpanEventMarshaler[]private final longprivate final byte[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSpanEventMarshaler(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateSize(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount) (package private) static SpanEventMarshaler(package private) static SpanEventMarshaler[]createRepeated(List<EventData> events) voidwriteTo(Serializer output) Methods inherited from class MarshalerWithSize
getBinarySerializedSizeMethods inherited from class 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:
writeToin classMarshaler- Throws:
IOException
-
calculateSize
private static int calculateSize(long epochNanos, byte[] name, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount)
-