Class: OpenTracing::Scope
- Inherits:
-
Object
- Object
- OpenTracing::Scope
- 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
-
#close ⇒ Object
Mark the end of the active period for the current thread and Scope, updating the ScopeManager#active in the process.
-
#span ⇒ Span
Return the Span scoped by this Scope.
Instance Method Details
#close ⇒ Object
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 |
#span ⇒ Span
Return the Span scoped by this Scope
11 12 13 |
# File 'lib/opentracing/scope.rb', line 11 def span Span::NOOP_INSTANCE end |