Class: Google::Cloud::Trace::V2::Span::Link
- Inherits:
-
Object
- Object
- Google::Cloud::Trace::V2::Span::Link
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/devtools/cloudtrace/v2/trace.rb
Overview
A pointer from the current span to another span in the same trace or in a different trace. For example, this can be used in batching operations, where a single batch handler processes multiple requests from different traces or when the handler receives a request from a different project.
Defined Under Namespace
Modules: Type
Instance Attribute Summary collapse
-
#attributes ⇒ ::Google::Cloud::Trace::V2::Span::Attributes
A set of attributes on the link.
-
#span_id ⇒ ::String
The [SPAN_ID] for a span within a trace.
-
#trace_id ⇒ ::String
The [TRACE_ID] for a trace within a project.
-
#type ⇒ ::Google::Cloud::Trace::V2::Span::Link::Type
The relationship of the current span relative to the linked span.
Instance Attribute Details
#attributes ⇒ ::Google::Cloud::Trace::V2::Span::Attributes
Returns A set of attributes on the link. You have have up to 32 attributes per link.
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 231 class Link include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end |
#span_id ⇒ ::String
Returns The [SPAN_ID] for a span within a trace.
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 231 class Link include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end |
#trace_id ⇒ ::String
Returns The [TRACE_ID] for a trace within a project.
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 231 class Link include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end |
#type ⇒ ::Google::Cloud::Trace::V2::Span::Link::Type
Returns The relationship of the current span relative to the linked span.
231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 |
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 231 class Link include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The relationship of the current span relative to the linked span: child, # parent, or unspecified. module Type # The relationship of the two spans is unknown. TYPE_UNSPECIFIED = 0 # The linked span is a child of the current span. CHILD_LINKED_SPAN = 1 # The linked span is a parent of the current span. PARENT_LINKED_SPAN = 2 end end |