Method: Datadog::Statsd#increment
- Defined in:
- lib/datadog/statsd.rb
#increment(stat, opts = EMPTY_OPTIONS) ⇒ Object
Sends an increment (count = 1) for the given stat to the statsd server.
189 190 191 192 193 |
# File 'lib/datadog/statsd.rb', line 189 def increment(stat, opts = EMPTY_OPTIONS) opts = { sample_rate: opts } if opts.is_a?(Numeric) incr_value = opts.fetch(:by, 1) count(stat, incr_value, opts) end |