Reference documentation and code samples for the Stackdriver Trace V2 Client class Link.
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.
Generated from protobuf message google.devtools.cloudtrace.v2.Span.Link
Namespace
Google \ Cloud \ Trace \ V2 \ SpanMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ trace_id
string
The [TRACE_ID]
for a trace within a project.
↳ span_id
string
The [SPAN_ID]
for a span within a trace.
↳ type
int
The relationship of the current span relative to the linked span.
↳ attributes
Google\Cloud\Trace\V2\Span\Attributes
A set of attributes on the link. Up to 32 attributes can be specified per link.
getTraceId
The [TRACE_ID]
for a trace within a project.
string
setTraceId
The [TRACE_ID]
for a trace within a project.
var
string
$this
getSpanId
The [SPAN_ID]
for a span within a trace.
string
setSpanId
The [SPAN_ID]
for a span within a trace.
var
string
$this
getType
The relationship of the current span relative to the linked span.
int
setType
The relationship of the current span relative to the linked span.
var
int
$this
getAttributes
A set of attributes on the link. Up to 32 attributes can be specified per link.
hasAttributes
clearAttributes
setAttributes
A set of attributes on the link. Up to 32 attributes can be specified per link.
$this