Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ImplicitContextKeyedInterface.php

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\Context

Code

public function activate() : ScopeInterface;

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal