Integrations/Ruby on Rails

Set Up Bugsly for Ruby on Rails

Error tracking for Rails applications with automatic controller instrumentation, ActiveRecord query monitoring, and background job error capture.

1. Install the SDK

bundle add sentry-ruby sentry-rails

2. Configure Bugsly

Add the following to your application entry point. Replace the DSN with your project DSN from the Bugsly dashboard.

# config/initializers/sentry.rb
Sentry.init do |config|
  config.dsn = "https://your-dsn@bugsly.dev/1"
  config.environment = Rails.env
  config.traces_sample_rate = 1.0
  config.breadcrumbs_logger = [:active_support_logger, :http_logger]
  config.send_default_pii = true
end

# Errors in controllers, models, views, and jobs
# are automatically captured with full context.

3. Verify It Works

Trigger a test error in your application and check your Bugsly dashboard. The error should show up as an issue within a few seconds.

Want to check your DSN before touching any code? From a macOS, Linux or WSL terminal, this sends one real error without any SDK (replace your-dsn with the key from your DSN):

curl -sS -X POST "https://bugsly.dev/api/1/envelope/" \
  -H "X-Sentry-Auth: Sentry sentry_version=7, sentry_key=your-dsn" \
  --data-binary $'{}\n{"type":"event"}\n{"level":"error","platform":"other","exception":{"values":[{"type":"CurlTestError","value":"Hello from my terminal"}]}}'

What You Get with Ruby on Rails

  • Automatic Rails controller and middleware instrumentation
  • ActiveRecord query breadcrumbs and spans from sentry-rails
  • Sidekiq and ActiveJob error monitoring
  • ActionMailer delivery failure capture
  • User context from Devise/Warden automatically attached
  • AI-powered analysis explains Rails errors in plain English

Frequently Asked Questions

Does Bugsly work with Rails 7+?

Bugsly receives events from the Sentry Ruby SDK, so any Rails version supported by sentry-rails works. Check the sentry-rails release notes for the Rails versions your release supports.

How does Bugsly track Sidekiq job errors?

Add the sentry-sidekiq gem alongside sentry-rails. Failed jobs, retries, and dead jobs are automatically reported with the full job payload and error context.

Can I filter sensitive data from error reports?

Yes. Configure config.before_send in the initializer to scrub sensitive fields, or use config.send_default_pii = false to disable automatic PII collection.

Start tracking errors in Ruby on Rails for free

The free plan includes 100 issues per month, 7-day retention and 10 AI requests per month. Paid plans start at $19/mo.

Start Free