NVIDIA DeepStream SDK API Reference

9.2 Release
trace::NoopTracer Class Referencefinal

Detailed Description

No-op implementation of Tracer.

Definition at line 94 of file includes/opentelemetry/trace/noop.h.

Inheritance diagram for trace::NoopTracer:
Collaboration diagram for trace::NoopTracer:

Public Member Functions

 NoopTracer ()
 
nostd::shared_ptr< Span > StartSpan (nostd::string_view, const common::KeyValueIterable &, const SpanContextKeyValueIterable &, const StartSpanOptions &) noexcept override
 
 NoopTracer ()
 
nostd::shared_ptr< Span > StartSpan (nostd::string_view, const common::KeyValueIterable &, const SpanContextKeyValueIterable &, const StartSpanOptions &) noexcept override
 
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, const StartSpanOptions &options={}) noexcept
 
template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, const T &attributes, const StartSpanOptions &options={}) noexcept
 
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, const common::KeyValueIterable &attributes, const StartSpanOptions &options={}) noexcept
 
template<class T , class U , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr, nostd::enable_if_t< detail::is_span_context_kv_iterable< U >::value > * = nullptr>
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, const T &attributes, const U &links, const StartSpanOptions &options={}) noexcept
 
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes, const StartSpanOptions &options={}) noexcept
 
template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, const T &attributes, std::initializer_list< std::pair< SpanContext, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>>> links, const StartSpanOptions &options={}) noexcept
 
template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes, const T &links, const StartSpanOptions &options={}) noexcept
 
nostd::shared_ptr< Span > StartSpan (nostd::string_view name, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >> attributes, std::initializer_list< std::pair< SpanContext, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>>> links, const StartSpanOptions &options={}) noexcept
 

Static Public Member Functions

static Scope WithActiveSpan (nostd::shared_ptr< Span > &span) noexcept
 Set the active span. More...
 
static Scope WithActiveSpan (nostd::shared_ptr< Span > &span) noexcept
 Set the active span. More...
 
static nostd::shared_ptr< Span > GetCurrentSpan () noexcept
 Get the currently active span. More...
 
static nostd::shared_ptr< Span > GetCurrentSpan () noexcept
 Get the currently active span. More...
 

Constructor & Destructor Documentation

◆ NoopTracer() [1/2]

trace::NoopTracer::NoopTracer ( )
inline

Definition at line 99 of file includes/opentelemetry/trace/noop.h.

◆ NoopTracer() [2/2]

trace::NoopTracer::NoopTracer ( )
inline

Definition at line 99 of file 9.2/includes/opentelemetry/trace/noop.h.

Member Function Documentation

◆ GetCurrentSpan() [1/2]

static nostd::shared_ptr<Span> trace::Tracer::GetCurrentSpan ( )
inlinestaticnoexceptinherited

Get the currently active span.

Returns
the currently active span, or an invalid default span if no span is active.

Definition at line 153 of file includes/opentelemetry/trace/tracer.h.

References trace::SpanContext::GetInvalid(), context::RuntimeContext::GetValue(), nostd::holds_alternative(), and trace::kSpanKey.

◆ GetCurrentSpan() [2/2]

static nostd::shared_ptr<Span> trace::Tracer::GetCurrentSpan ( )
inlinestaticnoexceptinherited

Get the currently active span.

Returns
the currently active span, or an invalid default span if no span is active.

Definition at line 153 of file 9.2/includes/opentelemetry/trace/tracer.h.

References trace::SpanContext::GetInvalid(), context::RuntimeContext::GetValue(), nostd::holds_alternative(), and trace::kSpanKey.

◆ StartSpan() [1/10]

nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
const common::KeyValueIterable &  attributes,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

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

◆ StartSpan() [2/10]

nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

Definition at line 44 of file includes/opentelemetry/trace/tracer.h.

◆ StartSpan() [3/10]

template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
const T &  attributes,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

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

◆ StartSpan() [4/10]

template<class T , class U , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr, nostd::enable_if_t< detail::is_span_context_kv_iterable< U >::value > * = nullptr>
nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
const T &  attributes,
const U &  links,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

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

◆ StartSpan() [5/10]

template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
const T &  attributes,
std::initializer_list< std::pair< SpanContext, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>>>  links,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

Definition at line 90 of file includes/opentelemetry/trace/tracer.h.

◆ StartSpan() [6/10]

nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

Definition at line 79 of file includes/opentelemetry/trace/tracer.h.

◆ StartSpan() [7/10]

template<class T , nostd::enable_if_t< common::detail::is_key_value_iterable< T >::value > * = nullptr>
nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes,
const T &  links,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

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

◆ StartSpan() [8/10]

nostd::shared_ptr<Span> trace::Tracer::StartSpan ( nostd::string_view  name,
std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>  attributes,
std::initializer_list< std::pair< SpanContext, std::initializer_list< std::pair< nostd::string_view, common::AttributeValue >>>>  links,
const StartSpanOptions &  options = {} 
)
inlinenoexceptinherited

Definition at line 121 of file includes/opentelemetry/trace/tracer.h.

◆ StartSpan() [9/10]

nostd::shared_ptr<Span> trace::NoopTracer::StartSpan ( nostd::string_view  ,
const common::KeyValueIterable &  ,
const SpanContextKeyValueIterable &  ,
const StartSpanOptions &   
)
inlineoverridevirtualnoexcept

Implements trace::Tracer.

Definition at line 106 of file 9.2/includes/opentelemetry/trace/noop.h.

◆ StartSpan() [10/10]

nostd::shared_ptr<Span> trace::NoopTracer::StartSpan ( nostd::string_view  ,
const common::KeyValueIterable &  ,
const SpanContextKeyValueIterable &  ,
const StartSpanOptions &   
)
inlineoverridevirtualnoexcept

Implements trace::Tracer.

Definition at line 106 of file includes/opentelemetry/trace/noop.h.

◆ WithActiveSpan() [1/2]

static Scope trace::Tracer::WithActiveSpan ( nostd::shared_ptr< Span > &  span)
inlinestaticnoexceptinherited

Set the active span.

The span will remain active until the returned Scope object is destroyed.

Parameters
spanthe span that should be set as the new active span.
Returns
a Scope that controls how long the span will be active.

Definition at line 146 of file includes/opentelemetry/trace/tracer.h.

◆ WithActiveSpan() [2/2]

static Scope trace::Tracer::WithActiveSpan ( nostd::shared_ptr< Span > &  span)
inlinestaticnoexceptinherited

Set the active span.

The span will remain active until the returned Scope object is destroyed.

Parameters
spanthe span that should be set as the new active span.
Returns
a Scope that controls how long the span will be active.

Definition at line 146 of file 9.2/includes/opentelemetry/trace/tracer.h.


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