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

Breadcrumb

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

function SpanContext::create

@inheritDoc

Overrides SpanContextInterface::create

1 call to SpanContext::create()
SpanContext::getInvalid in vendor/open-telemetry/api/Trace/SpanContext.php
@inheritDoc

File

vendor/open-telemetry/api/Trace/SpanContext.php, line 96

Class

SpanContext

Namespace

OpenTelemetry\API\Trace

Code

public static function create(string $traceId, string $spanId, int $traceFlags = TraceFlags::DEFAULT, ?TraceStateInterface $traceState = null) : SpanContextInterface {
    return new self($traceId, $spanId, $traceFlags, false, $traceState);
}

API Navigation

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