You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bad software is everywhere, and we're tired of it. Sentry is on a mission to help developers write better software faster, so we can get back to enjoying technology. If you want to join us Check out our open positions
Sentry SDK for Ruby
Current version
Build
Coverage
API doc
Migrate From sentry-raven
The old sentry-raven client has entered maintenance mode and was moved to here.
If you're using sentry-raven, we recommend you to migrate to this new SDK. You can find the benefits of migrating and how to do it in our migration guide.
Requirements
We test from Ruby 2.4 to Ruby 3.4 at the latest patchlevel/teeny version. We also support JRuby 9.0.
If you use self-hosted Sentry, please also make sure its version is above 20.6.0.
Getting Started
Install
gem"sentry-ruby"
and depends on the integrations you want to have, you might also want to install these:
Sentry.initdo |config|
# set a uniform sample rate between 0.0 and 1.0config.traces_sample_rate=0.2# you can also use traces_sampler for more fine-grained sampling# please click the link below to learn moreend
Please make sure to read the CONTRIBUTING.md before making a pull request.
Thanks to everyone who has contributed to this project so far.
Warning
Example and sample code in sentry-rails/examples and sentry-rails/spec/dummy is unmaintained. Sample code may contain security vulnerabilities, should never be used in production, and exists only for illustrative purposes.