Add the sentry Ruby SDK to your Gemfile:
gem "sentry-ruby"
Then run bundle install.
Initialize the SDK:
Sentry.init do |config|
config.dsn = "YOUR_DSN"
config.traces_sample_rate = 0.01 # 1% of transactions
config.breadcrumbs_logger = [:http_logger]
end
Verify your setup:
Sentry.capture_message("Test GlitchTip error")
sentry-rails instead for richer context.traces_sample_rate to a low value in production to save disk space.