Class: OpenTracing::Scope

Inherits:
Object
  • Object
show all
Defined in:
lib/opentracing/scope.rb

Overview

Scope represents an OpenTracing Scope

See www.opentracing.io for more information.

Constant Summary collapse

NOOP_INSTANCE =
Scope.new.freeze

Instance Method Summary collapse

Instance Method Details

#closeObject

Mark the end of the active period for the current thread and Scope, updating the ScopeManager#active in the process.

NOTE: Calling close more than once on a single Scope instance leads to undefined behavior.



20
# File 'lib/opentracing/scope.rb', line 20

def close; end

#spanSpan

Return the Span scoped by this Scope

Returns:



11
12
13
# File 'lib/opentracing/scope.rb', line 11

def span
  Span::NOOP_INSTANCE
end