Automatic Instrumentation
Many integrations for popular frameworks automatically capture transactions. If you use have any of the following frameworks set up for Sentry error reporting and use the relevant Sentry gem, you will start to see traces immediately:
- Ruby on Rails (
sentry-rails
) - Sidekiq (
sentry-sidekiq
) - Delayed Job (
sentry-delayed_job
) - Resque (
sentry-resque
)
Spans are instrumented for the following operations within a transaction:
- Database queries in Rails that use
ActiveRecord
- includes common database systems such as Postgres and MySQL
- Outgoing HTTP requests made with
Net::HTTP
- Redis operations
Spans are only created within an existing transaction. If you're not using any of the supported frameworks, you'll need to create transactions manually.
Help improve this content
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").
- Package:
- gem:sentry-ruby
- Version:
- 5.17.3
- Repository:
- https://github.com/getsentry/sentry-ruby