Class: Google::Apis::MonitoringV3::SpanContext
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::SpanContext
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/monitoring_v3/classes.rb,
generated/google/apis/monitoring_v3/representations.rb,
generated/google/apis/monitoring_v3/representations.rb
Overview
The context of a span, attached to google.api.Distribution.Exemplars in google. api.Distribution values during aggregation.It contains the name of a span with format: projects/PROJECT_ID/traces/TRACE_ID/spans/SPAN_ID
Instance Attribute Summary collapse
-
#span_name ⇒ String
The resource name of the span in the following format: projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID] TRACE_ID is a unique identifier for a trace within a project; it is a 32- character hexadecimal encoding of a 16-byte array.SPAN_ID is a unique identifier for a span within a trace; it is a 16-character hexadecimal encoding of an 8-byte array.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpanContext
constructor
A new instance of SpanContext.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ SpanContext
Returns a new instance of SpanContext
2459 2460 2461 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2459 def initialize(**args) update!(**args) end |
Instance Attribute Details
#span_name ⇒ String
The resource name of the span in the following format:
projects/[PROJECT_ID]/traces/[TRACE_ID]/spans/[SPAN_ID]
TRACE_ID is a unique identifier for a trace within a project; it is a 32-
character hexadecimal encoding of a 16-byte array.SPAN_ID is a unique
identifier for a span within a trace; it is a 16-character hexadecimal
encoding of an 8-byte array.
Corresponds to the JSON property spanName
2457 2458 2459 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2457 def span_name @span_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2464 2465 2466 |
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2464 def update!(**args) @span_name = args[:span_name] if args.key?(:span_name) end |