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

Breadcrumb

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

function Sdk::isInstrumentationDisabled

Tests whether an auto-instrumentation package has been disabled by config

File

vendor/open-telemetry/sdk/Sdk.php, line 36

Class

Sdk

Namespace

OpenTelemetry\SDK

Code

public static function isInstrumentationDisabled(string $name) : bool {
    $disabledInstrumentations = Configuration::getList(Variables::OTEL_PHP_DISABLED_INSTRUMENTATIONS);
    return [
        self::OTEL_PHP_DISABLED_INSTRUMENTATIONS_ALL,
    ] === $disabledInstrumentations || in_array($name, $disabledInstrumentations);
}

API Navigation

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