Stackdriver Trace Client - Class Rest (1.4.11)

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} 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 {@see} for format.

traceSpanCreate

Parameter
NameDescription
args array

Constants

BASE_URI

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