Sha256: 31a297f4d23a6e25ad6716285c343ff7c2172bca72c59902d76119a9e7d1582a

Contents?: true

Size: 306 Bytes

Versions: 8

Compression:

Stored size: 306 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)
    true
  end

  def <<(_datagram)
    self # noop
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
statsd-instrument-3.0.0 lib/statsd/instrument/null_sink.rb
statsd-instrument-3.0.0.pre2 lib/statsd/instrument/null_sink.rb
statsd-instrument-2.9.2 lib/statsd/instrument/null_sink.rb
statsd-instrument-3.0.0.pre1 lib/statsd/instrument/null_sink.rb
statsd-instrument-2.9.1 lib/statsd/instrument/null_sink.rb
statsd-instrument-2.9.0 lib/statsd/instrument/null_sink.rb
statsd-instrument-2.8.0 lib/statsd/instrument/null_sink.rb
statsd-instrument-2.7.1 lib/statsd/instrument/null_sink.rb