RuntimeContextStorage is used by RuntimeContext to store Context frames.
Custom context management strategies can be implemented by deriving from this class and passing an initialized RuntimeContextStorage object to RuntimeContext::SetRuntimeContextStorage.
Definition at line 48 of file includes/opentelemetry/context/runtime_context.h.

Public Member Functions | |
| virtual Context | GetCurrent () noexcept=0 |
| Return the current context. More... | |
| virtual nostd::unique_ptr< Token > | Attach (const Context &context) noexcept=0 |
| Set the current context. More... | |
| virtual bool | Detach (Token &token) noexcept=0 |
| Detach the context related to the given token. More... | |
| virtual | ~RuntimeContextStorage () |
| virtual Context | GetCurrent () noexcept=0 |
| Return the current context. More... | |
| virtual nostd::unique_ptr< Token > | Attach (const Context &context) noexcept=0 |
| Set the current context. More... | |
| virtual bool | Detach (Token &token) noexcept=0 |
| Detach the context related to the given token. More... | |
| virtual | ~RuntimeContextStorage () |
Protected Member Functions | |
| nostd::unique_ptr< Token > | CreateToken (const Context &context) noexcept |
| nostd::unique_ptr< Token > | CreateToken (const Context &context) noexcept |
|
inlinevirtual |
Definition at line 71 of file includes/opentelemetry/context/runtime_context.h.
|
inlinevirtual |
Definition at line 71 of file 9.2/includes/opentelemetry/context/runtime_context.h.
|
pure virtualnoexcept |
Set the current context.
| context | The new current context |
Implemented in context::ThreadLocalContextStorage, and context::ThreadLocalContextStorage.
|
pure virtualnoexcept |
Set the current context.
| context | The new current context |
Implemented in context::ThreadLocalContextStorage, and context::ThreadLocalContextStorage.
|
inlineprotectednoexcept |
Definition at line 74 of file includes/opentelemetry/context/runtime_context.h.
Referenced by context::ThreadLocalContextStorage::Attach().
|
inlineprotectednoexcept |
Definition at line 74 of file 9.2/includes/opentelemetry/context/runtime_context.h.
|
pure virtualnoexcept |
Detach the context related to the given token.
| token | a token related to a context |
Implemented in context::ThreadLocalContextStorage, and context::ThreadLocalContextStorage.
|
pure virtualnoexcept |
Detach the context related to the given token.
| token | a token related to a context |
Implemented in context::ThreadLocalContextStorage, and context::ThreadLocalContextStorage.
|
pure virtualnoexcept |
Return the current context.
Implemented in context::ThreadLocalContextStorage, and context::ThreadLocalContextStorage.
|
pure virtualnoexcept |
Return the current context.
Implemented in context::ThreadLocalContextStorage, and context::ThreadLocalContextStorage.