Stackdriver Trace V2 Client - Class Link (1.4.11)

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

Methods

Constructor.

Parameters
NameDescription
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. You have have up to 32 attributes per link.

The [TRACE_ID] for a trace within a project.

Generated from protobuf field string trace_id = 1;

Returns
TypeDescription
string

The [TRACE_ID] for a trace within a project.

Generated from protobuf field string trace_id = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

The [SPAN_ID] for a span within a trace.

Generated from protobuf field string span_id = 2;

Returns
TypeDescription
string

The [SPAN_ID] for a span within a trace.

Generated from protobuf field string span_id = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

The relationship of the current span relative to the linked span.

Generated from protobuf field .google.devtools.cloudtrace.v2.Span.Link.Type type = 3;

Returns
TypeDescription
int

The relationship of the current span relative to the linked span.

Generated from protobuf field .google.devtools.cloudtrace.v2.Span.Link.Type type = 3;

Parameter
NameDescription
var int
Returns
TypeDescription
$this

A set of attributes on the link. You have have up to 32 attributes per link.

Generated from protobuf field .google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;

Returns
TypeDescription
Google\Cloud\Trace\V2\Span\Attributes|null

A set of attributes on the link. You have have up to 32 attributes per link.

Generated from protobuf field .google.devtools.cloudtrace.v2.Span.Attributes attributes = 4;

Parameter
NameDescription
var Google\Cloud\Trace\V2\Span\Attributes
Returns
TypeDescription
$this