class Aws::Telemetry::TracerBase

Base for ‘Tracer` classes.

Public Instance Methods

current_span() click to toggle source

Returns the current active span.

@return [Aws::Telemetry::SpanBase]

# File lib/aws-sdk-core/telemetry/base.rb, line 72
def current_span
  raise NotImplementedError
end
in_span(name, attributes: nil, kind: nil) click to toggle source

A helper for the default use-case of extending the current trace with a span. On exit, the Span that was active before calling this method will be reactivated. If an exception occurs during the execution of the provided block, it will be recorded on the span and re-raised.

@param [String] name Span name @param [Hash] attributes Attributes to attach to the span @param [Aws::Telemetry::SpanKind] kind Type of Span @return [Aws::Telemetry::SpanBase]

# File lib/aws-sdk-core/telemetry/base.rb, line 65
def in_span(name, attributes: nil, kind: nil)
  raise NotImplementedError
end
start_span(name, with_parent: nil, attributes: nil, kind: nil) click to toggle source

Used when a caller wants to manage the activation/deactivation and lifecycle of the Span and its parent manually.

@param [String] name Span name @param [Object] with_parent Parent Context @param [Hash] attributes Attributes to attach to the span @param [Aws::Telemetry::SpanKind] kind Type of Span @return [Aws::Telemetry::SpanBase]

# File lib/aws-sdk-core/telemetry/base.rb, line 51
def start_span(name, with_parent: nil, attributes: nil, kind: nil)
  raise NotImplementedError
end