Reference documentation and code samples for the Cloud Trace V2 API class Google::Cloud::Trace::V2::Span::Link.
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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#attributes
def attributes() -> ::Google::Cloud::Trace::V2::Span::Attributes
Returns
- (::Google::Cloud::Trace::V2::Span::Attributes) — A set of attributes on the link. You have have up to 32 attributes per link.
#attributes=
def attributes=(value) -> ::Google::Cloud::Trace::V2::Span::Attributes
Parameter
- value (::Google::Cloud::Trace::V2::Span::Attributes) — A set of attributes on the link. You have have up to 32 attributes per link.
Returns
- (::Google::Cloud::Trace::V2::Span::Attributes) — A set of attributes on the link. You have have up to 32 attributes per link.
#span_id
def span_id() -> ::String
Returns
- (::String) — The [SPAN_ID] for a span within a trace.
#span_id=
def span_id=(value) -> ::String
Parameter
- value (::String) — The [SPAN_ID] for a span within a trace.
Returns
- (::String) — The [SPAN_ID] for a span within a trace.
#trace_id
def trace_id() -> ::String
Returns
- (::String) — The [TRACE_ID] for a trace within a project.
#trace_id=
def trace_id=(value) -> ::String
Parameter
- value (::String) — The [TRACE_ID] for a trace within a project.
Returns
- (::String) — The [TRACE_ID] for a trace within a project.
#type
def type() -> ::Google::Cloud::Trace::V2::Span::Link::Type
Returns
- (::Google::Cloud::Trace::V2::Span::Link::Type) — The relationship of the current span relative to the linked span.
#type=
def type=(value) -> ::Google::Cloud::Trace::V2::Span::Link::Type
Parameter
- value (::Google::Cloud::Trace::V2::Span::Link::Type) — The relationship of the current span relative to the linked span.
Returns
- (::Google::Cloud::Trace::V2::Span::Link::Type) — The relationship of the current span relative to the linked span.