Cloud Trace V1 API - Class Google::Cloud::Trace::V1::Trace (v0.8.2)

Reference documentation and code samples for the Cloud Trace V1 API class Google::Cloud::Trace::V1::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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#project_id

def project_id() -> ::String
Returns
  • (::String) — Project ID of the Cloud project where the trace data is stored.

#project_id=

def project_id=(value) -> ::String
Parameter
  • value (::String) — Project ID of the Cloud project where the trace data is stored.
Returns
  • (::String) — Project ID of the Cloud project where the trace data is stored.

#spans

def spans() -> ::Array<::Google::Cloud::Trace::V1::TraceSpan>
Returns

#spans=

def spans=(value) -> ::Array<::Google::Cloud::Trace::V1::TraceSpan>
Parameter
Returns

#trace_id

def trace_id() -> ::String
Returns
  • (::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.

#trace_id=

def trace_id=(value) -> ::String
Parameter
  • value (::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.
Returns
  • (::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.