NVIDIA DeepStream SDK API Reference

9.2 Release
context::RuntimeContext Class Reference

Detailed Description

Static Public Member Functions

static Context GetCurrent () noexcept
 
static nostd::unique_ptr< Token > Attach (const Context &context) noexcept
 
static bool Detach (Token &token) noexcept
 
static Context SetValue (nostd::string_view key, const ContextValue &value, Context *context=nullptr) noexcept
 
static ContextValue GetValue (nostd::string_view key, Context *context=nullptr) noexcept
 
static void SetRuntimeContextStorage (const nostd::shared_ptr< RuntimeContextStorage > &storage) noexcept
 Provide a custom runtime context storage. More...
 
static nostd::shared_ptr< const RuntimeContextStorage > GetConstRuntimeContextStorage () noexcept
 Provide a pointer to const runtime context storage. More...
 
static Context GetCurrent () noexcept
 
static nostd::unique_ptr< Token > Attach (const Context &context) noexcept
 
static bool Detach (Token &token) noexcept
 
static Context SetValue (nostd::string_view key, const ContextValue &value, Context *context=nullptr) noexcept
 
static ContextValue GetValue (nostd::string_view key, Context *context=nullptr) noexcept
 
static void SetRuntimeContextStorage (const nostd::shared_ptr< RuntimeContextStorage > &storage) noexcept
 Provide a custom runtime context storage. More...
 
static nostd::shared_ptr< const RuntimeContextStorage > GetConstRuntimeContextStorage () noexcept
 Provide a pointer to const runtime context storage. More...
 

Member Function Documentation

◆ Attach() [1/2]

static nostd::unique_ptr<Token> context::RuntimeContext::Attach ( const Context &  context)
inlinestaticnoexcept

◆ Attach() [2/2]

static nostd::unique_ptr<Token> context::RuntimeContext::Attach ( const Context &  context)
inlinestaticnoexcept

◆ Detach() [1/2]

static bool context::RuntimeContext::Detach ( Token &  token)
inlinestaticnoexcept

◆ Detach() [2/2]

static bool context::RuntimeContext::Detach ( Token &  token)
inlinestaticnoexcept

◆ GetConstRuntimeContextStorage() [1/2]

static nostd::shared_ptr<const RuntimeContextStorage> context::RuntimeContext::GetConstRuntimeContextStorage ( )
inlinestaticnoexcept

Provide a pointer to const runtime context storage.

The returned pointer can only be used for extending the lifetime of the runtime context storage.

Definition at line 168 of file 9.2/includes/opentelemetry/context/runtime_context.h.

◆ GetConstRuntimeContextStorage() [2/2]

static nostd::shared_ptr<const RuntimeContextStorage> context::RuntimeContext::GetConstRuntimeContextStorage ( )
inlinestaticnoexcept

Provide a pointer to const runtime context storage.

The returned pointer can only be used for extending the lifetime of the runtime context storage.

Definition at line 168 of file includes/opentelemetry/context/runtime_context.h.

◆ GetCurrent() [1/2]

static Context context::RuntimeContext::GetCurrent ( )
inlinestaticnoexcept

◆ GetCurrent() [2/2]

static Context context::RuntimeContext::GetCurrent ( )
inlinestaticnoexcept

◆ GetValue() [1/2]

static ContextValue context::RuntimeContext::GetValue ( nostd::string_view  key,
Context *  context = nullptr 
)
inlinestaticnoexcept

◆ GetValue() [2/2]

static ContextValue context::RuntimeContext::GetValue ( nostd::string_view  key,
Context *  context = nullptr 
)
inlinestaticnoexcept

◆ SetRuntimeContextStorage() [1/2]

static void context::RuntimeContext::SetRuntimeContextStorage ( const nostd::shared_ptr< RuntimeContextStorage > &  storage)
inlinestaticnoexcept

Provide a custom runtime context storage.

This provides a possibility to override the default thread-local runtime context storage. This has to be set before any spans are created by the application, otherwise the behavior is undefined.

Parameters
storagea custom runtime context storage

Definition at line 155 of file includes/opentelemetry/context/runtime_context.h.

◆ SetRuntimeContextStorage() [2/2]

static void context::RuntimeContext::SetRuntimeContextStorage ( const nostd::shared_ptr< RuntimeContextStorage > &  storage)
inlinestaticnoexcept

Provide a custom runtime context storage.

This provides a possibility to override the default thread-local runtime context storage. This has to be set before any spans are created by the application, otherwise the behavior is undefined.

Parameters
storagea custom runtime context storage

Definition at line 155 of file 9.2/includes/opentelemetry/context/runtime_context.h.

◆ SetValue() [1/2]

static Context context::RuntimeContext::SetValue ( nostd::string_view  key,
const ContextValue &  value,
Context *  context = nullptr 
)
inlinestaticnoexcept

◆ SetValue() [2/2]

static Context context::RuntimeContext::SetValue ( nostd::string_view  key,
const ContextValue &  value,
Context *  context = nullptr 
)
inlinestaticnoexcept

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