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 int
private static final SpanLinkMarshaler[]
private final boolean
private final String
private final TraceFlags
private final String
private final byte[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SpanLinkMarshaler
(String traceId, String spanId, TraceFlags traceFlags, byte[] traceStateUtf8, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, boolean isLinkContextRemote) -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
calculateSize
(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[]
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
-
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:
writeTo
in classMarshaler
- Throws:
IOException
-
calculateSize
private static int calculateSize(String traceId, String spanId, TraceFlags flags, byte[] traceStateUtf8, KeyValueMarshaler[] attributeMarshalers, int droppedAttributesCount, boolean isLinkContextRemote) -
encodeSpanLinkTraceState
-