Method: ElasticAPM::OpenTracing::Scope#initialize

Defined in:
lib/elastic_apm/opentracing.rb

#initialize(span, scope_stack, finish_on_close:) ⇒ Scope

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Scope.



153
154
155
156
157
# File 'lib/elastic_apm/opentracing.rb', line 153

def initialize(span, scope_stack, finish_on_close:)
  @span = span
  @scope_stack = scope_stack
  @finish_on_close = finish_on_close
end