Stackdriver Trace Client - Class Rest (1.5.3)

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

Implementation of the Google Trace REST API.

Methods

__construct

Parameter
NameDescription
config array

[optional] Configuration options. Please see {@see \Google\Cloud\Trace\Connection\Google\Cloud\Core\RequestWrapper::__construct()} for the available options.

traceBatchWrite

Sends new spans to new or existing traces. You cannot update existing spans.

Parameters
NameDescription
args array

Batch write params.

↳ projectsId string

The ID of the Google Cloud Project

↳ spans array

Array of associative array span data. See Google\Cloud\Trace\Connection\Google\Cloud\Trace\Span::info() for format.

traceSpanCreate

Parameter
NameDescription
args array

Constants

BASE_URI

Value: 'https://cloudtrace.googleapis.com/'