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... | |
|
inlinenoexcept |
Initialize a new scope.
| span | the given span will be set as the currently active span. |
Definition at line 32 of file includes/opentelemetry/trace/scope.h.
|
inlinenoexcept |
Initialize a new scope.
| span | the given span will be set as the currently active span. |
Definition at line 32 of file 9.2/includes/opentelemetry/trace/scope.h.