Class: Google::Cloud::Trace::V2::Span::Link

Inherits:
Object
  • Object
show all
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

Instance Attribute Details

#attributes::Google::Cloud::Trace::V2::Span::Attributes

Returns A set of attributes on the link. Up to 32 attributes can be specified per link.

Returns:



236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 236

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.

Returns:

  • (::String)

    The [SPAN_ID] for a span within a trace.



236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 236

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.

Returns:

  • (::String)

    The [TRACE_ID] for a trace within a project.



236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 236

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.

Returns:



236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
# File 'proto_docs/google/devtools/cloudtrace/v2/trace.rb', line 236

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