NVIDIA DeepStream SDK API Reference

9.2 Release
trace::TraceFlags Class Referencefinal

Detailed Description

Definition at line 18 of file includes/opentelemetry/trace/trace_flags.h.

Public Member Functions

 TraceFlags () noexcept
 
 TraceFlags (uint8_t flags) noexcept
 
bool IsSampled () const noexcept
 
bool IsRandom () const noexcept
 
void ToLowerBase16 (nostd::span< char, 2 > buffer) const noexcept
 
uint8_t flags () const noexcept
 
bool operator== (const TraceFlags &that) const noexcept
 
bool operator!= (const TraceFlags &that) const noexcept
 
void CopyBytesTo (nostd::span< uint8_t, 1 > dest) const noexcept
 
 TraceFlags () noexcept
 
 TraceFlags (uint8_t flags) noexcept
 
bool IsSampled () const noexcept
 
bool IsRandom () const noexcept
 
void ToLowerBase16 (nostd::span< char, 2 > buffer) const noexcept
 
uint8_t flags () const noexcept
 
bool operator== (const TraceFlags &that) const noexcept
 
bool operator!= (const TraceFlags &that) const noexcept
 
void CopyBytesTo (nostd::span< uint8_t, 1 > dest) const noexcept
 

Static Public 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. More...
 
static constexpr uint8_t kAllW3CTraceContext2Flags = kIsSampled | kIsRandom
 Valid flags in W3C Trace Context version 2. More...
 

Constructor & Destructor Documentation

◆ TraceFlags() [1/4]

trace::TraceFlags::TraceFlags ( )
inlinenoexcept

Definition at line 36 of file includes/opentelemetry/trace/trace_flags.h.

◆ TraceFlags() [2/4]

trace::TraceFlags::TraceFlags ( uint8_t  flags)
inlineexplicitnoexcept

Definition at line 38 of file includes/opentelemetry/trace/trace_flags.h.

◆ TraceFlags() [3/4]

trace::TraceFlags::TraceFlags ( )
inlinenoexcept

◆ TraceFlags() [4/4]

trace::TraceFlags::TraceFlags ( uint8_t  flags)
inlineexplicitnoexcept

Member Function Documentation

◆ CopyBytesTo() [1/2]

void trace::TraceFlags::CopyBytesTo ( nostd::span< uint8_t, 1 >  dest) const
inlinenoexcept

Definition at line 59 of file includes/opentelemetry/trace/trace_flags.h.

◆ CopyBytesTo() [2/2]

void trace::TraceFlags::CopyBytesTo ( nostd::span< uint8_t, 1 >  dest) const
inlinenoexcept

◆ flags() [1/2]

uint8_t trace::TraceFlags::flags ( ) const
inlinenoexcept

◆ flags() [2/2]

uint8_t trace::TraceFlags::flags ( ) const
inlinenoexcept

Definition at line 52 of file includes/opentelemetry/trace/trace_flags.h.

◆ IsRandom() [1/2]

bool trace::TraceFlags::IsRandom ( ) const
inlinenoexcept

Definition at line 42 of file 9.2/includes/opentelemetry/trace/trace_flags.h.

References kIsRandom.

◆ IsRandom() [2/2]

bool trace::TraceFlags::IsRandom ( ) const
inlinenoexcept

Definition at line 42 of file includes/opentelemetry/trace/trace_flags.h.

References kIsRandom.

◆ IsSampled() [1/2]

bool trace::TraceFlags::IsSampled ( ) const
inlinenoexcept

Definition at line 40 of file 9.2/includes/opentelemetry/trace/trace_flags.h.

References kIsSampled.

◆ IsSampled() [2/2]

bool trace::TraceFlags::IsSampled ( ) const
inlinenoexcept

◆ operator!=() [1/2]

bool trace::TraceFlags::operator!= ( const TraceFlags &  that) const
inlinenoexcept

Definition at line 56 of file includes/opentelemetry/trace/trace_flags.h.

◆ operator!=() [2/2]

bool trace::TraceFlags::operator!= ( const TraceFlags &  that) const
inlinenoexcept

◆ operator==() [1/2]

bool trace::TraceFlags::operator== ( const TraceFlags &  that) const
inlinenoexcept

Definition at line 54 of file includes/opentelemetry/trace/trace_flags.h.

◆ operator==() [2/2]

bool trace::TraceFlags::operator== ( const TraceFlags &  that) const
inlinenoexcept

◆ ToLowerBase16() [1/2]

void trace::TraceFlags::ToLowerBase16 ( nostd::span< char, 2 >  buffer) const
inlinenoexcept

◆ ToLowerBase16() [2/2]

void trace::TraceFlags::ToLowerBase16 ( nostd::span< char, 2 >  buffer) const
inlinenoexcept

Field Documentation

◆ kAllW3CTraceContext1Flags

static constexpr uint8_t trace::TraceFlags::kAllW3CTraceContext1Flags = kIsSampled
staticconstexpr

Valid flags in W3C Trace Context version 1.

See https://www.w3.org/TR/trace-context-1/#trace-flags

Definition at line 28 of file includes/opentelemetry/trace/trace_flags.h.

◆ kAllW3CTraceContext2Flags

static constexpr uint8_t trace::TraceFlags::kAllW3CTraceContext2Flags = kIsSampled | kIsRandom
staticconstexpr

Valid flags in W3C Trace Context version 2.

See https://www.w3.org/TR/trace-context-1/#trace-flags

Definition at line 34 of file includes/opentelemetry/trace/trace_flags.h.

◆ kIsRandom

static constexpr uint8_t trace::TraceFlags::kIsRandom = 2
staticconstexpr

Definition at line 22 of file includes/opentelemetry/trace/trace_flags.h.

Referenced by IsRandom().

◆ kIsSampled

static constexpr uint8_t trace::TraceFlags::kIsSampled = 1
staticconstexpr

The documentation for this class was generated from the following file: