ReadableSpanInterface
in
Tags
Table of Contents
Methods
- getAttribute() : mixed
- Returns the value of the attribute with the provided *key*.
- getContext() : SpanContextInterface
- getDuration() : int
- Returns the duration of the {@see API\SpanInterface} in nanoseconds.
- getInstrumentationScope() : InstrumentationScopeInterface
- getKind() : int
- getName() : string
- getParentContext() : SpanContextInterface
- hasEnded() : bool
- toSpanData() : SpanDataInterface
- Returns an immutable representation of this instance.
Methods
getAttribute()
Returns the value of the attribute with the provided *key*.
public
getAttribute(string $key) : mixed
Returns null
if there are no attributes set, or no attribute with that key exists.
Parameters
- $key : string
getContext()
public
getContext() : SpanContextInterface
Return values
SpanContextInterfacegetDuration()
Returns the duration of the {@see API\SpanInterface} in nanoseconds.
public
getDuration() : int
If still active, returns now() - start
.
Return values
intgetInstrumentationScope()
public
getInstrumentationScope() : InstrumentationScopeInterface
Return values
InstrumentationScopeInterfacegetKind()
public
getKind() : int
Tags
Return values
intgetName()
public
getName() : string
Return values
stringgetParentContext()
public
getParentContext() : SpanContextInterface
Return values
SpanContextInterfacehasEnded()
public
hasEnded() : bool
Return values
booltoSpanData()
Returns an immutable representation of this instance.
public
toSpanData() : SpanDataInterface