Sha256: cbbdf712cb344e1d76ece39794e3c34968da8f26359f00cdd547a7eefab45e7a
Contents?: true
Size: 966 Bytes
Versions: 8
Compression:
Stored size: 966 Bytes
Contents
# Instrumentation Cassanity comes with a log subscriber and automatic metriks or statsd instrumentation. By default these work with ActiveSupport::Notifications, but only require the pieces of ActiveSupport that are needed and only do so if you actually attempt to require the instrumentation files listed below. To use the log subscriber: ```ruby # Gemfile gem 'activesupport' # config/initializers/cassanity.rb (or wherever you want it) require 'cassanity/instrumentation/log_subscriber' ``` To use the metriks instrumentation: ```ruby # Gemfile gem 'activesupport' gem 'metriks' # config/initializers/cassanity.rb (or wherever you want it) require 'cassanity/instrumentation/metriks' ``` To use the statsd instrumentation: ```ruby # Gemfile gem 'activesupport' gem 'statsd-ruby' # config/initializers/cassanity.rb (or wherever you want it) require 'cassanity/instrumentation/statsd' Cassanity::Instrumentation::StatsdSubscriber.client = Statsd.new ```
Version data entries
8 entries across 8 versions & 1 rubygems