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

Breadcrumb

  1. Drupal Core 11.1.x

Context.php

Same filename in this branch
  1. 11.1.x vendor/open-telemetry/context/Context.php
  2. 11.1.x vendor/sebastian/recursion-context/src/Context.php
  3. 11.1.x vendor/symfony/serializer/Annotation/Context.php
  4. 11.1.x vendor/symfony/serializer/Attribute/Context.php
  5. 11.1.x vendor/phpdocumentor/type-resolver/src/Types/Context.php
  6. 11.1.x core/lib/Drupal/Core/Plugin/Context/Context.php
  7. 11.1.x core/lib/Drupal/Component/Plugin/Context/Context.php

Namespace

OpenTelemetry\API\Instrumentation\AutoInstrumentation

File

vendor/open-telemetry/api/Instrumentation/AutoInstrumentation/Context.php

View source
<?php

declare (strict_types=1);
namespace OpenTelemetry\API\Instrumentation\AutoInstrumentation;

use OpenTelemetry\API\Logs\LoggerProviderInterface;
use OpenTelemetry\API\Logs\NoopLoggerProvider;
use OpenTelemetry\API\Metrics\MeterProviderInterface;
use OpenTelemetry\API\Metrics\Noop\NoopMeterProvider;
use OpenTelemetry\API\Trace\NoopTracerProvider;
use OpenTelemetry\API\Trace\TracerProviderInterface;
use OpenTelemetry\Context\Propagation\NoopTextMapPropagator;
use OpenTelemetry\Context\Propagation\TextMapPropagatorInterface;

/**
 * Context used for component creation.
 */
final class Context {
    public function __construct(TracerProviderInterface $tracerProvider = new NoopTracerProvider(), MeterProviderInterface $meterProvider = new NoopMeterProvider(), LoggerProviderInterface $loggerProvider = new NoopLoggerProvider(), TextMapPropagatorInterface $propagator = new NoopTextMapPropagator()) {
    }

}

Classes

Title Deprecated Summary
Context Context used for component creation.

API Navigation

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