Class: Google::Devtools::Cloudtrace::V2::Span::Link

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/trace/v2/doc/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

#attributesGoogle::Devtools::Cloudtrace::V2::Span::Attributes

Returns A set of attributes on the link. You have have up to 32 attributes per link.

Returns:



195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 195

class Link
  # 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_idString

Returns The [SPAN_ID] for a span within a trace.

Returns:

  • (String)

    The [SPAN_ID] for a span within a trace.



195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 195

class Link
  # 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_idString

Returns The [TRACE_ID] for a trace within a project.

Returns:

  • (String)

    The [TRACE_ID] for a trace within a project.



195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 195

class Link
  # 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

#typeGoogle::Devtools::Cloudtrace::V2::Span::Link::Type

Returns The relationship of the current span relative to the linked span.

Returns:



195
196
197
198
199
200
201
202
203
204
205
206
207
208
# File 'lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb', line 195

class Link
  # 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