Stackdriver Trace V2 Client - Class BatchWriteSpansRequest (1.5.3)

Reference documentation and code samples for the Stackdriver Trace V2 Client class BatchWriteSpansRequest.

The request message for the BatchWriteSpans method.

Generated from protobuf message google.devtools.cloudtrace.v2.BatchWriteSpansRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID].

↳ spans array<Google\Cloud\Trace\V2\Span>

Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined.

getName

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID].

Returns
TypeDescription
string

setName

Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID].

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpans

Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSpans

Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined.

Parameter
NameDescription
var array<Google\Cloud\Trace\V2\Span>
Returns
TypeDescription
$this