Package io.opentelemetry.api.trace
Class TraceFlags
- java.lang.Object
-
- io.opentelemetry.api.trace.TraceFlags
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte
byteFromHex(CharSequence src, int srcOffset)
Extract the byte representation of the flags from a hex-representation.static byte
getDefault()
Returns the defaultTraceFlags
.static int
getHexLength()
Returns the size in Hex of trace flags.static byte
getSampled()
static boolean
isSampledFromHex(CharSequence src, int srcOffset)
Extract the sampled flag from hex-based trace-flags.
-
-
-
Method Detail
-
getHexLength
public static int getHexLength()
Returns the size in Hex of trace flags.
-
getDefault
public static byte getDefault()
Returns the defaultTraceFlags
.- Returns:
- the default
TraceFlags
.
-
isSampledFromHex
public static boolean isSampledFromHex(CharSequence src, int srcOffset)
Extract the sampled flag from hex-based trace-flags.
-
byteFromHex
public static byte byteFromHex(CharSequence src, int srcOffset)
Extract the byte representation of the flags from a hex-representation.
-
getSampled
public static byte getSampled()
-
-