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

Breadcrumb

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

interface ReadableSpanInterface

Hierarchy

  • interface \OpenTelemetry\SDK\Trace\ReadableSpanInterface

Expanded class hierarchy of ReadableSpanInterface

All classes that implement ReadableSpanInterface

See also

https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6…

4 files declare their use of ReadableSpanInterface
BatchSpanProcessor.php in vendor/open-telemetry/sdk/Trace/SpanProcessor/BatchSpanProcessor.php
MultiSpanProcessor.php in vendor/open-telemetry/sdk/Trace/SpanProcessor/MultiSpanProcessor.php
NoopSpanProcessor.php in vendor/open-telemetry/sdk/Trace/SpanProcessor/NoopSpanProcessor.php
SimpleSpanProcessor.php in vendor/open-telemetry/sdk/Trace/SpanProcessor/SimpleSpanProcessor.php

File

vendor/open-telemetry/sdk/Trace/ReadableSpanInterface.php, line 13

Namespace

OpenTelemetry\SDK\Trace
View source
interface ReadableSpanInterface {
    public function getName() : string;
    public function getContext() : API\SpanContextInterface;
    public function getParentContext() : API\SpanContextInterface;
    public function getInstrumentationScope() : InstrumentationScopeInterface;
    public function hasEnded() : bool;
    
    /**
     * Returns an immutable representation of this instance.
     */
    public function toSpanData() : SpanDataInterface;
    
    /**
     * Returns the duration of the {@see API\SpanInterface} in nanoseconds.
     * If still active, returns `now() - start`.
     */
    public function getDuration() : int;
    
    /**
     * @see API\SpanKind
     */
    public function getKind() : int;
    
    /**
     * Returns the value of the attribute with the provided *key*.
     * Returns `null` if there are no attributes set, or no attribute with that key exists.
     *
     * @return mixed
     */
    public function getAttribute(string $key);

}

Members

Title Sort descending Modifiers Object type Summary
ReadableSpanInterface::getAttribute public function Returns the value of the attribute with the provided *key*.
Returns `null` if there are no attributes set, or no attribute with that key exists.
ReadableSpanInterface::getContext public function
ReadableSpanInterface::getDuration public function Returns the duration of the {If still active, returns `now() - start`.
ReadableSpanInterface::getInstrumentationScope public function
ReadableSpanInterface::getKind public function
ReadableSpanInterface::getName public function
ReadableSpanInterface::getParentContext public function
ReadableSpanInterface::hasEnded public function
ReadableSpanInterface::toSpanData public function Returns an immutable representation of this instance.

API Navigation

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