Configuration
Configure the SDK to match your needs.Basic Configuration
config/initializers/brainzlab.rb
Full Configuration
config/initializers/brainzlab.rb
Environment Variables
All options can be set via environment variables:Per-Environment Configuration
config/initializers/brainzlab.rb
Configuration Options
General
| Option | Description | Default |
|---|---|---|
secret_key | Your API key | Required |
environment | Environment name | Rails.env |
service | Service/app name | App name |
host | Server hostname | Socket.gethostname |
Recall
| Option | Description | Default |
|---|---|---|
recall_enabled | Enable logging | true |
recall_min_level | Minimum log level | :debug |
recall_buffer_size | Logs to buffer before flush | 50 |
recall_flush_interval | Seconds between flushes | 5 |
Reflex
| Option | Description | Default |
|---|---|---|
reflex_enabled | Enable error tracking | true |
reflex_excluded_exceptions | Exceptions to ignore | [] |
reflex_max_breadcrumbs | Breadcrumbs to keep | 100 |