Class TraceFlags
Defined in File trace_flags.h
Class Documentation
-
class TraceFlags
Public Functions
-
inline TraceFlags() noexcept
-
inline explicit TraceFlags(uint8_t flags) noexcept
-
inline bool IsSampled() const noexcept
-
inline bool IsRandom() const noexcept
-
inline void ToLowerBase16(nostd::span<char, 2> buffer) const noexcept
-
inline uint8_t flags() const noexcept
-
inline bool operator==(const TraceFlags &that) const noexcept
-
inline bool operator!=(const TraceFlags &that) const noexcept
-
inline void CopyBytesTo(nostd::span<uint8_t, 1> dest) const noexcept
Public Static Attributes
-
static constexpr uint8_t kIsSampled = 1
-
static constexpr uint8_t kIsRandom = 2
-
static constexpr uint8_t kAllW3CTraceContext1Flags = kIsSampled
Valid flags in W3C Trace Context version 1. See https://www.w3.org/TR/trace-context-1/#trace-flags
-
static constexpr uint8_t kAllW3CTraceContext2Flags = kIsSampled | kIsRandom
Valid flags in W3C Trace Context version 2. See https://www.w3.org/TR/trace-context-1/#trace-flags
-
inline TraceFlags() noexcept