Context.php
Same filename in this branch
- 11.1.x vendor/open-telemetry/context/Context.php
- 11.1.x vendor/sebastian/recursion-context/src/Context.php
- 11.1.x vendor/symfony/serializer/Annotation/Context.php
- 11.1.x vendor/symfony/serializer/Attribute/Context.php
- 11.1.x vendor/phpdocumentor/type-resolver/src/Types/Context.php
- 11.1.x core/lib/Drupal/Core/Plugin/Context/Context.php
- 11.1.x core/lib/Drupal/Component/Plugin/Context/Context.php
Namespace
OpenTelemetry\API\Instrumentation\AutoInstrumentationFile
-
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. |