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
Namespace
Google \ Cloud \ Trace \ V2Methods
__construct
Constructor.
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]
.
string
setName
Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID]
.
var
string
$this
getSpans
Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined.
setSpans
Required. A list of new spans. The span names must not match existing spans, otherwise the results are undefined.
$this
static::build
name
string
Required. The name of the project where the spans belong. The format is projects/[PROJECT_ID]
. Please see Google\Cloud\Trace\V2\TraceServiceClient::projectName()
for help formatting this field.
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.