Class: Jaeger::Client::ScopeManager::ScopeStack Private
- Inherits:
-
Object
- Object
- Jaeger::Client::ScopeManager::ScopeStack
- Defined in:
- lib/jaeger/client/scope_manager/scope_stack.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#initialize ⇒ ScopeStack
constructor
private
A new instance of ScopeStack.
- #peek ⇒ Object private
- #pop ⇒ Object private
- #push(scope) ⇒ Object private
Constructor Details
#initialize ⇒ ScopeStack
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 ScopeStack.
8 9 10 11 12 13 |
# File 'lib/jaeger/client/scope_manager/scope_stack.rb', line 8 def initialize # Generate a random identifier to use as the Thread.current key. This is # needed so that it would be possible to create multiple tracers in one # thread (mostly useful for testing purposes) @scope_identifier = ScopeIdentifier.generate end |
Instance Method Details
#peek ⇒ Object
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.
23 24 25 |
# File 'lib/jaeger/client/scope_manager/scope_stack.rb', line 23 def peek store.last end |
#pop ⇒ Object
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.
19 20 21 |
# File 'lib/jaeger/client/scope_manager/scope_stack.rb', line 19 def pop store.pop end |
#push(scope) ⇒ Object
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.
15 16 17 |
# File 'lib/jaeger/client/scope_manager/scope_stack.rb', line 15 def push(scope) store << scope end |