Link
class Link
A class that represents a Link resource.
Traits
Constants
TYPE_UNSPECIFIED |
|
TYPE_CHILD_LINKED_SPAN |
|
TYPE_PARENT_LINKED_SPAN |
|
Methods
addAttribute(string $attribute, mixed $value)
Attach a single attribute to this object.
from AttributeTrait
__construct(string $traceId, string $spanId, array $options = [])
Create a new Link.
string
traceId()
Return the traceId for this link.
string
spanId()
Return the spanId for this link.
string
type()
Return the type for this link.
Details
in AttributeTrait at line 32
addAttributes(array $attributes)
Attach attributes to this object.
in AttributeTrait at line 45
addAttribute(string $attribute, mixed $value)
Attach a single attribute to this object.
in AttributeTrait at line 55
array
attributes()
Return the list of attributes for this object.
at line 60
__construct(string $traceId, string $spanId, array $options = [])
Create a new Link.
at line 77
string
traceId()
Return the traceId for this link.
at line 87
string
spanId()
Return the spanId for this link.
at line 97
string
type()
Return the type for this link.