@Immutable
public final class TraceFlags
extends java.lang.Object
spans
. These determine features such as whether a Span
should be traced. It
is implemented as a bitmask.Modifier and Type | Method and Description |
---|---|
static byte |
byteFromHex(java.lang.CharSequence src,
int srcOffset)
Extract the byte representation of the flags from a hex-representation.
|
static byte |
getDefault()
Returns the default
TraceFlags . |
static int |
getHexLength()
Returns the size in Hex of trace flags.
|
static byte |
getSampled() |
static boolean |
isSampledFromHex(java.lang.CharSequence src,
int srcOffset)
Extract the sampled flag from hex-based trace-flags.
|
public static int getHexLength()
public static byte getDefault()
TraceFlags
.TraceFlags
.public static boolean isSampledFromHex(java.lang.CharSequence src, int srcOffset)
public static byte byteFromHex(java.lang.CharSequence src, int srcOffset)
public static byte getSampled()