interface SpanDataInterface
Represents an immutable snapshot of a {
Hierarchy
- interface \OpenTelemetry\SDK\Trace\SpanDataInterface
Expanded class hierarchy of SpanDataInterface
All classes that implement SpanDataInterface
See also
API\SpanInterface}.
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6…
6 files declare their use of SpanDataInterface
- BatchSpanProcessor.php in vendor/
open-telemetry/ sdk/ Trace/ SpanProcessor/ BatchSpanProcessor.php - FriendlySpanConverter.php in vendor/
open-telemetry/ sdk/ Trace/ SpanExporter/ FriendlySpanConverter.php - SpanConverter.php in vendor/
open-telemetry/ exporter-otlp/ SpanConverter.php - SpanExporterDecoratorTrait.php in vendor/
open-telemetry/ sdk/ Trace/ Behavior/ SpanExporterDecoratorTrait.php - SpanExporterTrait.php in vendor/
open-telemetry/ sdk/ Trace/ Behavior/ SpanExporterTrait.php
File
-
vendor/
open-telemetry/ sdk/ Trace/ SpanDataInterface.php, line 17
Namespace
OpenTelemetry\SDK\TraceView source
interface SpanDataInterface {
public function getName() : string;
public function getKind() : int;
public function getContext() : API\SpanContextInterface;
public function getParentContext() : API\SpanContextInterface;
public function getTraceId() : string;
public function getSpanId() : string;
public function getParentSpanId() : string;
public function getStatus() : StatusDataInterface;
public function getStartEpochNanos() : int;
public function getAttributes() : AttributesInterface;
/** @return list<EventInterface> */
public function getEvents() : array;
/** @return list<LinkInterface> */
public function getLinks() : array;
public function getEndEpochNanos() : int;
public function hasEnded() : bool;
public function getInstrumentationScope() : InstrumentationScopeInterface;
public function getResource() : ResourceInfo;
/** @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/sdk_exporters/non-otlp.md#dropped-events-count */
public function getTotalDroppedEvents() : int;
/** @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/sdk_exporters/non-otlp.md#dropped-links-count */
public function getTotalDroppedLinks() : int;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
SpanDataInterface::getAttributes | public | function | 1 | |
SpanDataInterface::getContext | public | function | 1 | |
SpanDataInterface::getEndEpochNanos | public | function | 1 | |
SpanDataInterface::getEvents | public | function | 1 | |
SpanDataInterface::getInstrumentationScope | public | function | 1 | |
SpanDataInterface::getKind | public | function | 1 | |
SpanDataInterface::getLinks | public | function | 1 | |
SpanDataInterface::getName | public | function | 1 | |
SpanDataInterface::getParentContext | public | function | 1 | |
SpanDataInterface::getParentSpanId | public | function | 1 | |
SpanDataInterface::getResource | public | function | 1 | |
SpanDataInterface::getSpanId | public | function | 1 | |
SpanDataInterface::getStartEpochNanos | public | function | 1 | |
SpanDataInterface::getStatus | public | function | 1 | |
SpanDataInterface::getTotalDroppedEvents | public | function | @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/sdk_exporters/non-otlp.md#dropped-events-count | 1 |
SpanDataInterface::getTotalDroppedLinks | public | function | @see https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/trace/sdk_exporters/non-otlp.md#dropped-links-count | 1 |
SpanDataInterface::getTraceId | public | function | 1 | |
SpanDataInterface::hasEnded | public | function | 1 |