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
gem install sentry-ruby sentry-rails2. 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. You should see the error appear within seconds, complete with stack trace, breadcrumbs, and AI-powered analysis.
What You Get with Ruby on Rails
- Automatic Rails controller and middleware instrumentation
- ActiveRecord query tracking with N+1 detection
- Sidekiq and ActiveJob error monitoring
- ActionMailer delivery failure capture
- User context from Devise/Warden automatically attached
- AI-powered analysis for common Rails errors
Frequently Asked Questions
Does Bugsly work with Rails 7+?
Yes. sentry-rails supports Rails 5.0 through 7.x, including Turbo, Hotwire, and the new Rails 7 defaults.
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
Get AI-powered error analysis, session replay, and performance monitoring — included free on every plan.
Start Free