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

Breadcrumb

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

function AutoRootSpan::shutdownHandler

@internal

1 call to AutoRootSpan::shutdownHandler()
AutoRootSpan::registerShutdownHandler in vendor/open-telemetry/sdk/Trace/AutoRootSpan.php
@internal

File

vendor/open-telemetry/sdk/Trace/AutoRootSpan.php, line 99

Class

AutoRootSpan

Namespace

OpenTelemetry\SDK\Trace

Code

public static function shutdownHandler() : void {
    $scope = Context::storage()->scope();
    if (!$scope) {
        return;
    }
    $scope->detach();
    $span = Span::fromContext($scope->context());
    $span->end();
}

API Navigation

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