Sha256: 4bdac94a1e1d85e31ae4da3865bcd5ada655e4a80b253810fe57da0fd4db425b

Contents?: true

Size: 307 Bytes

Versions: 2

Compression:

Stored size: 307 Bytes

Contents

# frozen_string_literal: true

# @note This class is part of the new Client implementation that is intended
#   to become the new default in the next major release of this library.
class StatsD::Instrument::NullSink
  def sample?(_sample_rate)
    false
  end

  def <<(_datagram)
    self # noop
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
statsd-instrument-2.7.0 lib/statsd/instrument/null_sink.rb
statsd-instrument-2.6.0 lib/statsd/instrument/null_sink.rb