NVIDIA DeepStream SDK API Reference

9.2 Release
sdk::trace::Tracer Class Referencefinal

Detailed Description

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

Inheritance diagram for sdk::trace::Tracer:
Collaboration diagram for sdk::trace::Tracer:

Public Member Functions

 Tracer (std::shared_ptr< TracerContext > context, std::unique_ptr< InstrumentationScope > instrumentation_scope=InstrumentationScope::Create("")) noexcept
 Construct a new Tracer with the given context pipeline. More...
 
nostd::shared_ptr< opentelemetry::trace::Span > StartSpan (nostd::string_view name, const opentelemetry::common::KeyValueIterable &attributes, const opentelemetry::trace::SpanContextKeyValueIterable &links, const opentelemetry::trace::StartSpanOptions &options={}) noexcept override
 
void ForceFlushWithMicroseconds (uint64_t timeout) noexcept override
 
void CloseWithMicroseconds (uint64_t timeout) noexcept override
 
SpanProcessor & GetProcessor () noexcept
 Returns the configured span processor. More...
 
IdGenerator & GetIdGenerator () const noexcept
 Returns the configured Id generator. More...
 
const InstrumentationScope & GetInstrumentationScope () const noexcept
 Returns the associated instrumentation scope. More...
 
const InstrumentationScope & GetInstrumentationLibrary () const noexcept
 
const opentelemetry::sdk::resource::Resource & GetResource ()
 Returns the currently configured resource. More...
 
Sampler & GetSampler ()
 
 Tracer (std::shared_ptr< TracerContext > context, std::unique_ptr< InstrumentationScope > instrumentation_scope=InstrumentationScope::Create("")) noexcept
 Construct a new Tracer with the given context pipeline. More...
 
nostd::shared_ptr< opentelemetry::trace::Span > StartSpan (nostd::string_view name, const opentelemetry::common::KeyValueIterable &attributes, const opentelemetry::trace::SpanContextKeyValueIterable &links, const opentelemetry::trace::StartSpanOptions &options={}) noexcept override
 
void ForceFlushWithMicroseconds (uint64_t timeout) noexcept override
 
void CloseWithMicroseconds (uint64_t timeout) noexcept override
 
SpanProcessor & GetProcessor () noexcept
 Returns the configured span processor. More...
 
IdGenerator & GetIdGenerator () const noexcept
 Returns the configured Id generator. More...
 
const InstrumentationScope & GetInstrumentationScope () const noexcept
 Returns the associated instrumentation scope. More...
 
const InstrumentationScope & GetInstrumentationLibrary () const noexcept
 
const opentelemetry::sdk::resource::Resource & GetResource ()
 Returns the currently configured resource. More...
 
Sampler & GetSampler ()
 

Constructor & Destructor Documentation

◆ Tracer() [1/2]

sdk::trace::Tracer::Tracer ( std::shared_ptr< TracerContext >  context,
std::unique_ptr< InstrumentationScope >  instrumentation_scope = InstrumentationScope::Create("") 
)
explicitnoexcept

Construct a new Tracer with the given context pipeline.

◆ Tracer() [2/2]

sdk::trace::Tracer::Tracer ( std::shared_ptr< TracerContext >  context,
std::unique_ptr< InstrumentationScope >  instrumentation_scope = InstrumentationScope::Create("") 
)
explicitnoexcept

Construct a new Tracer with the given context pipeline.

Member Function Documentation

◆ CloseWithMicroseconds() [1/2]

void sdk::trace::Tracer::CloseWithMicroseconds ( uint64_t  timeout)
overridenoexcept

◆ CloseWithMicroseconds() [2/2]

void sdk::trace::Tracer::CloseWithMicroseconds ( uint64_t  timeout)
overridenoexcept

◆ ForceFlushWithMicroseconds() [1/2]

void sdk::trace::Tracer::ForceFlushWithMicroseconds ( uint64_t  timeout)
overridenoexcept

◆ ForceFlushWithMicroseconds() [2/2]

void sdk::trace::Tracer::ForceFlushWithMicroseconds ( uint64_t  timeout)
overridenoexcept

◆ GetIdGenerator() [1/2]

IdGenerator& sdk::trace::Tracer::GetIdGenerator ( ) const
inlinenoexcept

Returns the configured Id generator.

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

◆ GetIdGenerator() [2/2]

IdGenerator& sdk::trace::Tracer::GetIdGenerator ( ) const
inlinenoexcept

Returns the configured Id generator.

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

◆ GetInstrumentationLibrary() [1/2]

const InstrumentationScope& sdk::trace::Tracer::GetInstrumentationLibrary ( ) const
inlinenoexcept

◆ GetInstrumentationLibrary() [2/2]

const InstrumentationScope& sdk::trace::Tracer::GetInstrumentationLibrary ( ) const
inlinenoexcept

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

◆ GetInstrumentationScope() [1/2]

const InstrumentationScope& sdk::trace::Tracer::GetInstrumentationScope ( ) const
inlinenoexcept

Returns the associated instrumentation scope.

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

◆ GetInstrumentationScope() [2/2]

const InstrumentationScope& sdk::trace::Tracer::GetInstrumentationScope ( ) const
inlinenoexcept

Returns the associated instrumentation scope.

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

◆ GetProcessor() [1/2]

SpanProcessor& sdk::trace::Tracer::GetProcessor ( )
inlinenoexcept

Returns the configured span processor.

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

◆ GetProcessor() [2/2]

SpanProcessor& sdk::trace::Tracer::GetProcessor ( )
inlinenoexcept

Returns the configured span processor.

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

◆ GetResource() [1/2]

const opentelemetry::sdk::resource::Resource& sdk::trace::Tracer::GetResource ( )
inline

Returns the currently configured resource.

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

◆ GetResource() [2/2]

const opentelemetry::sdk::resource::Resource& sdk::trace::Tracer::GetResource ( )
inline

Returns the currently configured resource.

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

◆ GetSampler() [1/2]

Sampler& sdk::trace::Tracer::GetSampler ( )
inline

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

◆ GetSampler() [2/2]

Sampler& sdk::trace::Tracer::GetSampler ( )
inline

◆ StartSpan() [1/2]

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

◆ StartSpan() [2/2]

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

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