
Sentry Ruby SDK
https://github.com/getsentry/sentry-ruby- Category
- Developer Tools
- Rank
- No. 359Tools index
- Pricing
- Open Source
- Type
- TOOL
- Builder
- getsentry
- GitHub
- 987 stars
- Latest release
- 7.0.0
- Date
About
Official Sentry SDK for Ruby — error monitoring and performance tracing for Rails and Ruby services.
What it does
It instruments Ruby applications, sends captured failures and transaction data to Sentry, and lets teams enrich events with breadcrumbs, context, and tags. Tracing can use a uniform sample rate or finer sampling rules.
Why it's ranked here
The SDK covers a broad Ruby service stack without forcing every integration into the core package. Dedicated gems connect Rails, Rack, major job systems, OpenTelemetry, and Yabeda, while the repository tests multiple Ruby and dependency combinations.
What's good
Its modular packaging keeps integrations explicit. Ruby support spans versions 2.4 through 4.0, plus JRuby 9.0. Event enrichment, configurable trace sampling, structured logging, and propagation headers provide useful control beyond basic exception capture.
Tradeoffs
It requires a Sentry destination and a configured connection identifier. Self-hosted installations must exceed version 20.6.0. Performance data needs sampling configuration, and framework or worker support may require extra gems. The bundled example applications are explicitly unmaintained and unsafe for production use.
How to use it well
Use it in Ruby services that already send operational data to Sentry, especially Rails applications with background jobs or OpenTelemetry instrumentation. Start with the core gem, add only relevant integrations, and tune trace sampling deliberately. It does not provide the Sentry server, deployment platform, or general application logging system.
Technical notes+
README.md documents Sentry.init, DSN configuration, trace sampling, supported runtimes, and optional integration gems. .scripts/batch_build.rb builds sentry-ruby plus six integrations, while .scripts/batch_release.rb synchronizes their version constants and core dependency constraints. bin/lib/matrix.rb expands each gem's test-matrix.json into canonical Bundler lockfile cells across Ruby and dependency axes. spec/spec_helper.rb configures RSpec, Capybara, headless Chrome, debug transport, and structured logging for end-to-end tests. spec/apps/rails-mini/app.rb exercises Rails, Active Job adapters, trace propagation, errors, and structured logs; spec/apps/svelte-mini/src/main.js supplies a browser-side tracing counterpart. .craft.yml publishes gem and registry artifacts.
Observed
- License
- MIT License
- Primary language
- Ruby
- Install surface
- RubyGems packages, with a core gem and optional integration gems
- Interface
- Ruby library SDK configured inside an application
- Runtime support
- Tested with Ruby 2.4 through Ruby 4.0 and supports JRuby 9.0
- Integrations
- Rack, Rails, Sidekiq, DelayedJob, Resque, OpenTelemetry, and Yabeda
- Repository structure
- Monorepo containing the core SDK and six separately packaged integrations
Read from README.md, Gemfile, .scripts/batch_build.rb, .scripts/batch_release.rb, bin/lib/matrix.rb, spec/spec_helper.rb, spec/apps/rails-mini/app.rb, spec/apps/svelte-mini/src/main.js, .rspec, LICENSE, Rakefile, AGENTS.md, CLAUDE.md, .craft.yml, .mise.toml.
What it can do
Capture and report runtime errors
Ruby application exceptions and errors → Detailed error reports sent to Sentry dashboard
Monitor application performance
Ruby application execution metrics → Performance traces and timing data
Track custom events
User-defined events and messages → Custom event data in Sentry interface
Add contextual information to errors
User data, tags, and additional context → Enriched error reports with contextual metadata
Filter and sample error reports
Configuration rules and sampling rates → Filtered subset of errors based on defined criteria
Integrate with Rails applications
Rails application configuration → Automatic error and performance monitoring for Rails apps
Tags
Tech Stack
Media

Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.