Stackdriver Trace V1 Client - Class Trace (2.0.0-RC1)

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

A trace describes how long it takes for an application to perform an operation. It consists of a set of spans, each of which represent a single timed event within the operation.

Generated from protobuf message google.devtools.cloudtrace.v1.Trace

Namespace

Google \ Cloud \ Trace \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ project_id
string

Project ID of the Cloud project where the trace data is stored.

↳ trace_id
string

Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, 382d4f4c6b7bb2f4a972559d9085001d .

↳ spans
array< TraceSpan >

Collection of spans in the trace.

getProjectId

Project ID of the Cloud project where the trace data is stored.

Returns
Type
Description
string

setProjectId

Project ID of the Cloud project where the trace data is stored.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getTraceId

Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, 382d4f4c6b7bb2f4a972559d9085001d .

Returns
Type
Description
string

setTraceId

Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. For example, 382d4f4c6b7bb2f4a972559d9085001d .

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSpans

Collection of spans in the trace.

Returns
Type
Description

setSpans

Collection of spans in the trace.

Parameter
Name
Description
var
array< TraceSpan >
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: