class ProjectsTracesSpans extends Resource (View source)

The "spans" collection of methods.

Typical usage is:

 $cloudtraceService = new Google\Service\CloudTrace(...);
 $spans = $cloudtraceService->projects_traces_spans;

Methods

createSpan(string $name, Span $postBody, array $optParams = [])

Creates a new span. (spans.createSpan)

Details

Span createSpan(string $name, Span $postBody, array $optParams = [])

Creates a new span. (spans.createSpan)

Parameters

string $name

Required. The resource name of the span in the following format: * projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] [TRACE_ID] is a unique identifier for a trace within a project; it is a 32-character hexadecimal encoding of a 16-byte array. It should not be zero. [SPAN_ID] is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array. It should not be zero. .

Span $postBody
array $optParams

Optional parameters.

Return Value

Span

Exceptions

Exception