NVIDIA DeepStream SDK API Reference

9.2 Release
trace::DefaultSpan Class Reference

Detailed Description

DefaultSpan provides a non-operational Span that propagates the tracer context by wrapping it inside the Span object.

Definition at line 21 of file includes/opentelemetry/trace/default_span.h.

Inheritance diagram for trace::DefaultSpan:
Collaboration diagram for trace::DefaultSpan:

Public Member Functions

trace::SpanContext GetContext () const noexcept override
 
bool IsRecording () const noexcept override
 
void SetAttribute (nostd::string_view, const common::AttributeValue &) noexcept override
 
void AddEvent (nostd::string_view) noexcept override
 
void AddEvent (nostd::string_view, common::SystemTimestamp) noexcept override
 
void AddEvent (nostd::string_view, const common::KeyValueIterable &) noexcept override
 
void AddEvent (nostd::string_view, common::SystemTimestamp, const common::KeyValueIterable &) noexcept override
 
void SetStatus (StatusCode, nostd::string_view) noexcept override
 
void UpdateName (nostd::string_view) noexcept override
 
void End (const EndSpanOptions &) noexcept override
 
nostd::string_view ToString () const noexcept
 
 DefaultSpan (SpanContext span_context) noexcept
 
 DefaultSpan (DefaultSpan &&spn) noexcept
 
 DefaultSpan (const DefaultSpan &spn) noexcept
 
trace::SpanContext GetContext () const noexcept override
 
bool IsRecording () const noexcept override
 
void SetAttribute (nostd::string_view, const common::AttributeValue &) noexcept override
 
void AddEvent (nostd::string_view) noexcept override
 
void AddEvent (nostd::string_view, common::SystemTimestamp) noexcept override
 
void AddEvent (nostd::string_view, const common::KeyValueIterable &) noexcept override
 
void AddEvent (nostd::string_view, common::SystemTimestamp, const common::KeyValueIterable &) noexcept override
 
void SetStatus (StatusCode, nostd::string_view) noexcept override
 
void UpdateName (nostd::string_view) noexcept override
 
void End (const EndSpanOptions &) noexcept override
 
nostd::string_view ToString () const noexcept
 
 DefaultSpan (SpanContext span_context) noexcept
 
 DefaultSpan (DefaultSpan &&spn) noexcept
 
 DefaultSpan (const DefaultSpan &spn) noexcept
 
template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
void AddEvent (nostd::string_view name, common::SystemTimestamp timestamp, const T &attributes) noexcept
 
template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
void AddEvent (nostd::string_view name, const T &attributes) noexcept
 
void AddEvent (nostd::string_view name, common::SystemTimestamp timestamp, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept
 
void AddEvent (nostd::string_view name, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes) noexcept
 

Static Public Member Functions

static DefaultSpan GetInvalid ()
 
static DefaultSpan GetInvalid ()
 

Constructor & Destructor Documentation

◆ DefaultSpan() [1/6]

trace::DefaultSpan::DefaultSpan ( SpanContext  span_context)
inlinenoexcept

Definition at line 66 of file includes/opentelemetry/trace/default_span.h.

Referenced by GetInvalid().

◆ DefaultSpan() [2/6]

trace::DefaultSpan::DefaultSpan ( DefaultSpan &&  spn)
inlinenoexcept

Definition at line 69 of file includes/opentelemetry/trace/default_span.h.

◆ DefaultSpan() [3/6]

trace::DefaultSpan::DefaultSpan ( const DefaultSpan &  spn)
inlinenoexcept

Definition at line 70 of file includes/opentelemetry/trace/default_span.h.

◆ DefaultSpan() [4/6]

trace::DefaultSpan::DefaultSpan ( SpanContext  span_context)
inlinenoexcept

◆ DefaultSpan() [5/6]

trace::DefaultSpan::DefaultSpan ( DefaultSpan &&  spn)
inlinenoexcept

◆ DefaultSpan() [6/6]

trace::DefaultSpan::DefaultSpan ( const DefaultSpan &  spn)
inlinenoexcept

Member Function Documentation

◆ AddEvent() [1/12]

template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
void trace::Span::AddEvent ( nostd::string_view  name,
common::SystemTimestamp  timestamp,
const T &  attributes 
)
inlinenoexceptinherited

Definition at line 100 of file includes/opentelemetry/trace/span.h.

References trace::Span::AddEvent().

◆ AddEvent() [2/12]

void trace::Span::AddEvent ( nostd::string_view  name,
common::SystemTimestamp  timestamp,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes 
)
inlinenoexceptinherited

Definition at line 114 of file includes/opentelemetry/trace/span.h.

References trace::Span::AddEvent().

◆ AddEvent() [3/12]

template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
void trace::Span::AddEvent ( nostd::string_view  name,
const T &  attributes 
)
inlinenoexceptinherited

Definition at line 109 of file includes/opentelemetry/trace/span.h.

References trace::Span::AddEvent().

◆ AddEvent() [4/12]

void trace::Span::AddEvent ( nostd::string_view  name,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes 
)
inlinenoexceptinherited

Definition at line 124 of file includes/opentelemetry/trace/span.h.

References trace::Span::AddEvent().

◆ AddEvent() [5/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  )
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 35 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ AddEvent() [6/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  )
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 35 of file includes/opentelemetry/trace/default_span.h.

◆ AddEvent() [7/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  ,
common::SystemTimestamp   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 37 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ AddEvent() [8/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  ,
common::SystemTimestamp   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 37 of file includes/opentelemetry/trace/default_span.h.

◆ AddEvent() [9/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  ,
common::SystemTimestamp  ,
const common::KeyValueIterable &   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 45 of file includes/opentelemetry/trace/default_span.h.

◆ AddEvent() [10/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  ,
common::SystemTimestamp  ,
const common::KeyValueIterable &   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 45 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ AddEvent() [11/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  ,
const common::KeyValueIterable &   
)
inlineoverridevirtualnoexcept

Reimplemented from trace::Span.

Definition at line 41 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ AddEvent() [12/12]

void trace::DefaultSpan::AddEvent ( nostd::string_view  ,
const common::KeyValueIterable &   
)
inlineoverridevirtualnoexcept

Reimplemented from trace::Span.

Definition at line 41 of file includes/opentelemetry/trace/default_span.h.

◆ End() [1/2]

void trace::DefaultSpan::End ( const EndSpanOptions &  )
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 62 of file includes/opentelemetry/trace/default_span.h.

◆ End() [2/2]

void trace::DefaultSpan::End ( const EndSpanOptions &  )
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 62 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ GetContext() [1/2]

trace::SpanContext trace::DefaultSpan::GetContext ( ) const
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 27 of file includes/opentelemetry/trace/default_span.h.

◆ GetContext() [2/2]

trace::SpanContext trace::DefaultSpan::GetContext ( ) const
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 27 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ GetInvalid() [1/2]

static DefaultSpan trace::DefaultSpan::GetInvalid ( )
inlinestatic

◆ GetInvalid() [2/2]

static DefaultSpan trace::DefaultSpan::GetInvalid ( )
inlinestatic

◆ IsRecording() [1/2]

bool trace::DefaultSpan::IsRecording ( ) const
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 29 of file includes/opentelemetry/trace/default_span.h.

◆ IsRecording() [2/2]

bool trace::DefaultSpan::IsRecording ( ) const
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 29 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ SetAttribute() [1/2]

void trace::DefaultSpan::SetAttribute ( nostd::string_view  ,
const common::AttributeValue &   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 31 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ SetAttribute() [2/2]

void trace::DefaultSpan::SetAttribute ( nostd::string_view  ,
const common::AttributeValue &   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 31 of file includes/opentelemetry/trace/default_span.h.

◆ SetStatus() [1/2]

void trace::DefaultSpan::SetStatus ( StatusCode  ,
nostd::string_view   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 58 of file includes/opentelemetry/trace/default_span.h.

◆ SetStatus() [2/2]

void trace::DefaultSpan::SetStatus ( StatusCode  ,
nostd::string_view   
)
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 58 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ ToString() [1/2]

nostd::string_view trace::DefaultSpan::ToString ( ) const
inlinenoexcept

Definition at line 64 of file includes/opentelemetry/trace/default_span.h.

◆ ToString() [2/2]

nostd::string_view trace::DefaultSpan::ToString ( ) const
inlinenoexcept

◆ UpdateName() [1/2]

void trace::DefaultSpan::UpdateName ( nostd::string_view  )
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 60 of file 9.2/includes/opentelemetry/trace/default_span.h.

◆ UpdateName() [2/2]

void trace::DefaultSpan::UpdateName ( nostd::string_view  )
inlineoverridevirtualnoexcept

Implements trace::Span.

Definition at line 60 of file includes/opentelemetry/trace/default_span.h.


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