Class: RooOnRails::Statsd

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/roo_on_rails/statsd.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeStatsd

Returns a new instance of Statsd.



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

def initialize
  @client = defined?(::STATSD) ? ::STATSD : ::Datadog::Statsd.new(host, port, tags: tags)
end

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



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

def client
  @client
end