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

Breadcrumb

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

function Span::getInvalid

@inheritDoc

Overrides SpanInterface::getInvalid

3 calls to Span::getInvalid()
LocalRootSpan::fromContext in vendor/open-telemetry/api/Trace/LocalRootSpan.php
Retrieve the local root span from a Context. @experimental
Span::fromContext in vendor/open-telemetry/api/Trace/Span.php
@inheritDoc
Span::wrap in vendor/open-telemetry/api/Trace/Span.php
@inheritDoc

File

vendor/open-telemetry/api/Trace/Span.php, line 29

Class

Span

Namespace

OpenTelemetry\API\Trace

Code

public static final function getInvalid() : SpanInterface {
    if (null === self::$invalidSpan) {
        self::$invalidSpan = new NonRecordingSpan(SpanContext::getInvalid());
    }
    return self::$invalidSpan;
}

API Navigation

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