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.
163 164 165 166 167 |
# File 'lib/datadog/statsd.rb', line 163 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 |