class ProjectsTraces extends Resource (View source)

The "traces" collection of methods.

Typical usage is:

 $cloudtraceService = new Google\Service\CloudTrace(...);
 $traces = $cloudtraceService->projects_traces;

Methods

batchWrite(string $name, BatchWriteSpansRequest $postBody, array $optParams = [])

Batch writes new spans to new or existing traces. You cannot update existing spans. (traces.batchWrite)

Details

CloudtraceEmpty batchWrite(string $name, BatchWriteSpansRequest $postBody, array $optParams = [])

Batch writes new spans to new or existing traces. You cannot update existing spans. (traces.batchWrite)

Parameters

string $name

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

BatchWriteSpansRequest $postBody
array $optParams

Optional parameters.

Return Value

CloudtraceEmpty

Exceptions

Exception