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

Breadcrumb

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

function Configurator::createNoop

Creates a configurator that uses noop instances for not configured values.

1 call to Configurator::createNoop()
Globals::globals in vendor/open-telemetry/api/Globals.php
@phan-suppress PhanTypeMismatchReturnNullable

File

vendor/open-telemetry/api/Instrumentation/Configurator.php, line 50

Class

Configurator
Configures the global (context scoped) instrumentation instances.

Namespace

OpenTelemetry\API\Instrumentation

Code

public static function createNoop() : Configurator {
    return self::create()->withTracerProvider(new NoopTracerProvider())
        ->withMeterProvider(new NoopMeterProvider())
        ->withPropagator(new NoopTextMapPropagator())
        ->withLoggerProvider(NoopLoggerProvider::getInstance())
        ->withEventLoggerProvider(new NoopEventLoggerProvider());
}

API Navigation

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