agoragames/strumbar — pull request #3 by logankoester (2012-08-08 21:29:13+00:00)
Title: Adds configuration options for toggling built-in instrumentation and sample rates

Built-in instrumentations are now disabled by default. New options are added to the configuration block as shown:

``` ruby
Strumbar.configure do |config|

# Application name as it should be stored by your Statsd backend.
config.application = 'statsd_appname'

# Statsd hostname
config.host = 'statsd.appname.example'

# Statsd port
config.port = 8125

# Default sample rate for all events.
config.default_rate = 1

# Toggles the built-in ActionController instrumentation.
config.action_controller = false

# Sample rate for recording ActionController events.
config.action_controller_rate = 1

# Toggles the built-in ActiveRecord instrumentation.
config.active_record = true

# Sample rate for recording ActiveRecord events.
config.active_record_rate = 1

# Toggles the built-in Redis instrumentation.
config.redis = true

# Sample rate for recording Redis events.
config.redis_rate = 1
end
```