class Atatus::OpenTracing::Scope

@api private

Attributes

span[R]

Public Class Methods

new(span, scope_stack, finish_on_close:) click to toggle source
# File lib/atatus/opentracing.rb, line 151
def initialize(span, scope_stack, finish_on_close:)
  @span = span
  @scope_stack = scope_stack
  @finish_on_close = finish_on_close
end

Public Instance Methods

atatus_span() click to toggle source
# File lib/atatus/opentracing.rb, line 159
def atatus_span
  span.atatus_span
end
close() click to toggle source
# File lib/atatus/opentracing.rb, line 163
def close
  @span.finish if @finish_on_close
  @scope_stack.pop
end