Top Description Inners Fields Constructors Methods
io.rsocket.metadata

public Class TracingMetadataCodec

extends Object
Class Inheritance
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator

Represents codes for tracing metadata which is fully compatible with Zipkin B3 propagation
Since
1.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Field Summary

Modifier and TypeField and Description
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int
pack-priv static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static TracingMetadata
decode(ByteBuf byteBuf)

pack-priv static ByteBuf
encode(ByteBufAllocator allocator, boolean isEmpty, long traceIdHigh, long traceId, boolean extendedTraceId, long spanId, long parentId, boolean includesParent, TracingMetadataCodec.Flags flag)

public static ByteBuf
encode128(ByteBufAllocator allocator, long traceIdHigh, long traceId, long spanId, long parentId, TracingMetadataCodec.Flags flag)

public static ByteBuf
encode128(ByteBufAllocator allocator, long traceIdHigh, long traceId, long spanId, TracingMetadataCodec.Flags flag)

public static ByteBuf
encode64(ByteBufAllocator allocator, long traceId, long spanId, long parentId, TracingMetadataCodec.Flags flag)

public static ByteBuf
encode64(ByteBufAllocator allocator, long traceId, long spanId, TracingMetadataCodec.Flags flag)

public static ByteBuf
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FLAG_DEBUGback to summary
pack-priv static final int FLAG_DEBUG
FLAG_EXTENDED_TRACE_ID_SIZEback to summary
pack-priv static final int FLAG_EXTENDED_TRACE_ID_SIZE
FLAG_IDS_SETback to summary
pack-priv static final int FLAG_IDS_SET
FLAG_INCLUDE_PARENT_IDback to summary
pack-priv static final int FLAG_INCLUDE_PARENT_ID
FLAG_NOT_SAMPLEDback to summary
pack-priv static final int FLAG_NOT_SAMPLED
FLAG_SAMPLEDback to summary
pack-priv static final int FLAG_SAMPLED

Constructor Detail

TracingMetadataCodecback to summary
public TracingMetadataCodec()

Method Detail

decodeback to summary
public static TracingMetadata decode(ByteBuf byteBuf)
encodeback to summary
pack-priv static ByteBuf encode(ByteBufAllocator allocator, boolean isEmpty, long traceIdHigh, long traceId, boolean extendedTraceId, long spanId, long parentId, boolean includesParent, TracingMetadataCodec.Flags flag)
encode128back to summary
public static ByteBuf encode128(ByteBufAllocator allocator, long traceIdHigh, long traceId, long spanId, long parentId, TracingMetadataCodec.Flags flag)
encode128back to summary
public static ByteBuf encode128(ByteBufAllocator allocator, long traceIdHigh, long traceId, long spanId, TracingMetadataCodec.Flags flag)
encode64back to summary
public static ByteBuf encode64(ByteBufAllocator allocator, long traceId, long spanId, long parentId, TracingMetadataCodec.Flags flag)
encode64back to summary
public static ByteBuf encode64(ByteBufAllocator allocator, long traceId, long spanId, TracingMetadataCodec.Flags flag)
encodeEmptyback to summary
public static ByteBuf encodeEmpty(ByteBufAllocator allocator, TracingMetadataCodec.Flags flag)
io.rsocket.metadata back to summary

public final Enum TracingMetadataCodec.Flags

extends Enum<TracingMetadataCodec.Flags>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final TracingMetadataCodec.Flags
public static final TracingMetadataCodec.Flags
public static final TracingMetadataCodec.Flags
public static final TracingMetadataCodec.Flags

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static TracingMetadataCodec.Flags
public static TracingMetadataCodec.Flags[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

DEBUGback to summary
public static final TracingMetadataCodec.Flags DEBUG
NOT_SAMPLEback to summary
public static final TracingMetadataCodec.Flags NOT_SAMPLE
SAMPLEback to summary
public static final TracingMetadataCodec.Flags SAMPLE
UNDECIDEDback to summary
public static final TracingMetadataCodec.Flags UNDECIDED

Constructor Detail

Flagsback to summary
private Flags()

Method Detail

valueOfback to summary
public static TracingMetadataCodec.Flags valueOf(String name)
valuesback to summary
public static TracingMetadataCodec.Flags[] values()