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

Breadcrumb

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

function ZendObserverFiber::isEnabled

1 call to ZendObserverFiber::isEnabled()
initialize_fiber_handler.php in vendor/open-telemetry/context/fiber/initialize_fiber_handler.php

File

vendor/open-telemetry/context/ZendObserverFiber.php, line 27

Class

ZendObserverFiber
@internal

Namespace

OpenTelemetry\Context

Code

public static function isEnabled() : bool {
    $enabled = $_SERVER['OTEL_PHP_FIBERS_ENABLED'] ?? false;
    return is_string($enabled) ? filter_var($enabled, FILTER_VALIDATE_BOOLEAN) : (bool) $enabled;
}

API Navigation

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