Class SpanLinkMarshaler
java.lang.Object
io.opentelemetry.exporter.internal.marshal.Marshaler
io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
io.opentelemetry.exporter.internal.otlp.traces.SpanLinkMarshaler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final KeyValueMarshaler[]private final intprivate static final SpanLinkMarshaler[]private final booleanprivate final Stringprivate final TraceFlagsprivate final Stringprivate final byte[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateSpanLinkMarshaler(String traceId, String spanId, TraceFlags traceFlags, byte[] traceStateUtf8, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, boolean isLinkContextRemote) -
Method Summary
Modifier and TypeMethodDescriptionprivate static intcalculateSize(String traceId, String spanId, TraceFlags flags, byte[] traceStateUtf8, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, boolean isLinkContextRemote) (package private) static SpanLinkMarshaler(package private) static SpanLinkMarshaler[]createRepeated(List<LinkData> links) (package private) static byte[]voidwriteTo(Serializer output) Methods inherited from class io.opentelemetry.exporter.internal.marshal.MarshalerWithSize
getBinarySerializedSizeMethods inherited from class io.opentelemetry.exporter.internal.marshal.Marshaler
writeBinaryTo, writeJsonTo, writeJsonTo, writeJsonWithNewline
-
Field Details
-
EMPTY
-
traceId
-
spanId
-
traceStateUtf8
private final byte[] traceStateUtf8 -
attributeMarshalers
-
droppedAttributesCount
private final int droppedAttributesCount -
traceFlags
-
isLinkContextRemote
private final boolean isLinkContextRemote
-
-
Constructor Details
-
SpanLinkMarshaler
private SpanLinkMarshaler(String traceId, String spanId, TraceFlags traceFlags, byte[] traceStateUtf8, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, boolean isLinkContextRemote)
-
-
Method Details
-
createRepeated
-
create
-
writeTo
- Specified by:
writeToin classMarshaler- Throws:
IOException
-
calculateSize
private static int calculateSize(String traceId, String spanId, TraceFlags flags, byte[] traceStateUtf8, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, boolean isLinkContextRemote) -
encodeSpanLinkTraceState
-