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

Breadcrumb

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

function SimpleSpanProcessor::shutdown

Overrides SpanProcessorInterface::shutdown

File

vendor/open-telemetry/sdk/Trace/SpanProcessor/SimpleSpanProcessor.php, line 63

Class

SimpleSpanProcessor

Namespace

OpenTelemetry\SDK\Trace\SpanProcessor

Code

public function shutdown(?CancellationInterface $cancellation = null) : bool {
    if ($this->closed) {
        return false;
    }
    $this->closed = true;
    return $this->flush(fn(): bool => $this->exporter
        ->shutdown($cancellation), __FUNCTION__, true, Context::getCurrent());
}
RSS feed
Powered by Drupal