class Trace extends Message

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.

Protobuf type Google\Devtools\Cloudtrace\V1\Trace

Methods

__construct()

No description

string
getProjectId()

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

setProjectId(string $var)

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

string
getTraceId()

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

setTraceId(string $var)

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

RepeatedField
getSpans()

Collection of spans in the trace.

setSpans(array|RepeatedField $var)

Collection of spans in the trace.

Details

at line 40
__construct()

at line 51
string getProjectId()

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

Generated from protobuf field string project_id = 1;

Return Value

string

at line 62
setProjectId(string $var)

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

Generated from protobuf field string project_id = 1;

Parameters

string $var

at line 75
string getTraceId()

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

Generated from protobuf field string trace_id = 2;

Return Value

string

at line 87
setTraceId(string $var)

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

Generated from protobuf field string trace_id = 2;

Parameters

string $var

at line 99
RepeatedField getSpans()

Collection of spans in the trace.

Generated from protobuf field repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;

Return Value

RepeatedField

at line 110
setSpans(array|RepeatedField $var)

Collection of spans in the trace.

Generated from protobuf field repeated .google.devtools.cloudtrace.v1.TraceSpan spans = 3;

Parameters

array|RepeatedField $var