function ImplicitContextKeyedInterface::activate
Adds `$this` to the {the new { { This method is equivalent to `Context::getCurrent().with($value).activate();`.
@todo: Update this to suggest using the new helper method way to doing something in a specific context/span.
See also
Context::getCurrent() current context} and makes
Context} the current context.
ScopeInterface::detach()} _MUST_ be called to properly restore the previous context.
3 methods override ImplicitContextKeyedInterface::activate()
- Baggage::activate in vendor/
open-telemetry/ api/ Baggage/ Baggage.php - @inheritDoc
- Configurator::activate in vendor/
open-telemetry/ api/ Instrumentation/ Configurator.php - Adds `$this` to the {the new { { This method is equivalent to `Context::getCurrent().with($value).activate();`.
- Span::activate in vendor/
open-telemetry/ api/ Trace/ Span.php - @inheritDoc
File
-
vendor/
open-telemetry/ context/ ImplicitContextKeyedInterface.php, line 26
Class
- ImplicitContextKeyedInterface
- Represents a value that can be stored within {Allows storing themselves without exposing a {
Namespace
OpenTelemetry\ContextCode
public function activate() : ScopeInterface;