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

Breadcrumb

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

function TracerSharedState::__construct

File

vendor/open-telemetry/sdk/Trace/TracerSharedState.php, line 22

Class

TracerSharedState
Stores shared state/config between all {

Namespace

OpenTelemetry\SDK\Trace

Code

public function __construct(IdGeneratorInterface $idGenerator, ResourceInfo $resource, SpanLimits $spanLimits, SamplerInterface $sampler, array $spanProcessors) {
    $this->spanProcessor = match (count($spanProcessors)) {    0 => NoopSpanProcessor::getInstance(),
        1 => $spanProcessors[0],
        default => new MultiSpanProcessor(...$spanProcessors),
    
    };
}

API Navigation

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