Class: Harness::Counter
- Inherits:
-
Measurement
- Object
- Struct
- Measurement
- Harness::Counter
- Defined in:
- lib/harness.rb
Instance Attribute Summary
Attributes inherited from Measurement
Instance Method Summary collapse
Methods inherited from Measurement
Instance Method Details
#log ⇒ Object
50 51 52 53 54 55 56 |
# File 'lib/harness.rb', line 50 def log if value.nil? Harness.increment name, sample_rate else Harness.count name, value, sample_rate end end |