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

Version Path
cassanity-0.6.0 doc/Instrumentation.md
cassanity-0.6.0.beta5 doc/Instrumentation.md
cassanity-0.6.0.beta4 doc/Instrumentation.md
cassanity-0.6.0.beta3 doc/Instrumentation.md
cassanity-0.6.0.beta2 doc/Instrumentation.md
cassanity-0.6.0.beta1 doc/Instrumentation.md
cassanity-0.5.1 doc/Instrumentation.md
cassanity-0.5.0 doc/Instrumentation.md