Google Cloud Ces V1 Client - Class Span (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class Span.

A span is a unit of work or a single operation during the request processing.

Generated from protobuf message google.cloud.ces.v1.Span

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The name of the span.

↳ start_time Google\Protobuf\Timestamp

Output only. The start time of the span.

↳ end_time Google\Protobuf\Timestamp

Output only. The end time of the span.

↳ duration Google\Protobuf\Duration

Output only. The duration of the span.

↳ attributes Google\Protobuf\Struct

Output only. Key-value attributes associated with the span.

↳ child_spans array<Span>

Output only. The child spans that are nested under this span.

getName

Output only. The name of the span.

Returns
Type Description
string

setName

Output only. The name of the span.

Parameter
Name Description
var string
Returns
Type Description
$this

getStartTime

Output only. The start time of the span.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Output only. The start time of the span.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

Output only. The end time of the span.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Output only. The end time of the span.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getDuration

Output only. The duration of the span.

Returns
Type Description
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

Output only. The duration of the span.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getAttributes

Output only. Key-value attributes associated with the span.

Returns
Type Description
Google\Protobuf\Struct|null

hasAttributes

clearAttributes

setAttributes

Output only. Key-value attributes associated with the span.

Parameter
Name Description
var Google\Protobuf\Struct
Returns
Type Description
$this

getChildSpans

Output only. The child spans that are nested under this span.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setChildSpans

Output only. The child spans that are nested under this span.

Parameter
Name Description
var array<Span>
Returns
Type Description
$this