NVIDIA DeepStream SDK API Reference

9.2 Release
trace::Scope Class Referencefinal

Detailed Description

Controls how long a span is active.

On creation of the Scope object, the given span is set to the currently active span. On destruction, the given span is ended and the previously active span will be the currently active span again.

Definition at line 25 of file includes/opentelemetry/trace/scope.h.

Public Member Functions

 Scope (const nostd::shared_ptr< Span > &span) noexcept
 Initialize a new scope. More...
 
 Scope (const nostd::shared_ptr< Span > &span) noexcept
 Initialize a new scope. More...
 

Constructor & Destructor Documentation

◆ Scope() [1/2]

trace::Scope::Scope ( const nostd::shared_ptr< Span > &  span)
inlinenoexcept

Initialize a new scope.

Parameters
spanthe given span will be set as the currently active span.

Definition at line 32 of file includes/opentelemetry/trace/scope.h.

◆ Scope() [2/2]

trace::Scope::Scope ( const nostd::shared_ptr< Span > &  span)
inlinenoexcept

Initialize a new scope.

Parameters
spanthe given span will be set as the currently active span.

Definition at line 32 of file 9.2/includes/opentelemetry/trace/scope.h.


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