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

Breadcrumb

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

function Span::end

@inheritDoc

File

vendor/open-telemetry/sdk/Trace/Span.php, line 248

Class

Span

Namespace

OpenTelemetry\SDK\Trace

Code

public function end(?int $endEpochNanos = null) : void {
    if ($this->hasEnded) {
        return;
    }
    $this->endEpochNanos = $endEpochNanos ?? Clock::getDefault()->now();
    $this->hasEnded = true;
    $this->checkForDroppedElements();
    $this->spanProcessor
        ->onEnd($this);
}
RSS feed
Powered by Drupal