class Google::Apis::CloudtraceV1::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.
Attributes
project_id[RW]
Project ID of the Cloud project where the trace data is stored. Corresponds to the JSON property `projectId` @return [String]
spans[RW]
Collection of spans in the trace. Corresponds to the JSON property `spans` @return [Array<Google::Apis::CloudtraceV1::TraceSpan>]
trace_id[RW]
Globally unique identifier for the trace. This identifier is a 128-bit numeric value formatted as a 32-byte hex string. Corresponds to the JSON property `traceId` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/cloudtrace_v1/classes.rb, line 74 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/cloudtrace_v1/classes.rb, line 79 def update!(**args) @project_id = args[:project_id] if args.key?(:project_id) @trace_id = args[:trace_id] if args.key?(:trace_id) @spans = args[:spans] if args.key?(:spans) end