Class: StatsD::Instrument::NullSink

Inherits:
Object
  • Object
show all
Defined in:
lib/statsd/instrument/null_sink.rb

Overview

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.

Instance Method Summary collapse

Instance Method Details

#<<(_datagram) ⇒ Object



10
11
12
# File 'lib/statsd/instrument/null_sink.rb', line 10

def <<(_datagram)
  self # noop
end

#sample?(_sample_rate) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/statsd/instrument/null_sink.rb', line 6

def sample?(_sample_rate)
  true
end