Class: Statsig::Diagnostics::Tracker
- Inherits:
-
Object
- Object
- Statsig::Diagnostics::Tracker
- Extended by:
- T::Sig
- Defined in:
- lib/diagnostics.rb
Instance Method Summary collapse
- #end(**tags) ⇒ Object
-
#initialize(diagnostics, key, step, tags = {}) ⇒ Tracker
constructor
A new instance of Tracker.
- #start(**tags) ⇒ Object
Constructor Details
#initialize(diagnostics, key, step, tags = {}) ⇒ Tracker
Returns a new instance of Tracker.
95 96 97 98 99 100 |
# File 'lib/diagnostics.rb', line 95 def initialize(diagnostics, key, step, = {}) @diagnostics = diagnostics @key = key @step = step @tags = end |
Instance Method Details
#end(**tags) ⇒ Object
106 107 108 |
# File 'lib/diagnostics.rb', line 106 def end(**) @diagnostics.mark(@key, 'end', @step, .nil? ? {} : .merge(@tags)) end |
#start(**tags) ⇒ Object
102 103 104 |
# File 'lib/diagnostics.rb', line 102 def start(**) @diagnostics.mark(@key, 'start', @step, .nil? ? {} : .merge(@tags)) end |