Sha256: e4303b705a9ba80d617e382ae2ccef23bbc28edaa3cdffb7600eb815e94c3cb5

Contents?: true

Size: 291 Bytes

Versions: 3

Compression:

Stored size: 291 Bytes

Contents

# frozen_string_literal: true

module StatsD::Instrument::Helpers
  def capture_statsd_datagrams(client: nil, &block)
    client ||= StatsD.singleton_client
    client.capture(&block)
  end

  # For backwards compatibility
  alias_method :capture_statsd_calls, :capture_statsd_datagrams
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
statsd-instrument-3.0.0 lib/statsd/instrument/helpers.rb
statsd-instrument-3.0.0.pre2 lib/statsd/instrument/helpers.rb
statsd-instrument-3.0.0.pre1 lib/statsd/instrument/helpers.rb