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



12
13
14
# File 'lib/statsd/instrument/null_sink.rb', line 12

def <<(_datagram)
  self # noop
end

#flush(blocking:) ⇒ Object



16
17
18
# File 'lib/statsd/instrument/null_sink.rb', line 16

def flush(blocking:)
  # noop
end

#sample?(_sample_rate) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/statsd/instrument/null_sink.rb', line 8

def sample?(_sample_rate)
  true
end