GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - getsentry/sentry-ruby: Sentry SDK for Ruby

BranchesTags
Open more actions menu

Latest commit

 

History

3,237 Commits
3,237 Commits

Folders and files

NameName
Last commit message
Last commit date
.claude
.claude
 
 
.devcontainer
.devcontainer
 
 
.github
.github
 
 
.scripts
.scripts
 
 
.vscode
.vscode
 
 
bin
bin
 
 
lib/sentry/test
lib/sentry/test
 
 
sentry-delayed_job
sentry-delayed_job
 
 
sentry-opentelemetry
sentry-opentelemetry
 
 
sentry-rails
sentry-rails
 
 
sentry-resque
sentry-resque
 
 
sentry-ruby
sentry-ruby
 
 
sentry-sidekiq
sentry-sidekiq
 
 
sentry-yabeda
sentry-yabeda
 
 
spec
spec
 
 
.craft.yml
.craft.yml
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.mise.ci.toml
.mise.ci.toml
 
 
.mise.toml
.mise.toml
 
 
.rspec
.rspec
 
 
.rubocop.yml
.rubocop.yml
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
EXTENSION.md
EXTENSION.md
 
 
Gemfile
Gemfile
 
 
Gemfile.dev
Gemfile.dev
 
 
Gemfile.rubocop
Gemfile.rubocop
 
 
Gemfile.rubocop.lock
Gemfile.rubocop.lock
 
 
LICENSE
LICENSE
 
 
MIGRATION.md
MIGRATION.md
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
codecov.yml
codecov.yml
 
 
sentry-ruby.code-workspace
sentry-ruby.code-workspace
 
 

Repository files navigation

Sentry

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
Gem Version Build Status codecov API doc
Gem Version Build Status codecov API doc
Gem Version Build Status codecov API doc
Gem Version Build Status codecov API doc
Gem Version Build Status codecov API doc
Gem Version Build Status codecov API doc
Gem Version Build Status codecov 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 4.0 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:

gem "sentry-rails"
gem "sentry-sidekiq"
gem "sentry-delayed_job"
gem "sentry-resque"
gem "sentry-opentelemetry"
gem "sentry-yabeda"

Configuration

You need to use Sentry.init to initialize and configure your SDK:

require "sentry-ruby"

Sentry.init do |config|
  config.dsn = "MY_DSN"
end

To learn more about available configuration options, please visit the official documentation.

Performance Monitoring

You can activate performance monitoring by enabling traces sampling:

Sentry.init do |config|
  # set a uniform sample rate between 0.0 and 1.0
  config.traces_sample_rate = 0.2
  # you can also use traces_sampler for more fine-grained sampling
  # please click the link below to learn more
end

To learn more about sampling transactions, please visit the official documentation.

Migration Guide

Integrations

  • Rack
  • Rails
  • Sidekiq
  • DelayedJob
  • Resque
  • OpenTelemetry
  • Yabeda

Enriching Events

  • Add more data to the current scope
  • Add custom breadcrumbs
  • Add contextual data
  • Add tags

Resources

  • Ruby docs
  • Forum
  • Discord Chat
  • Stack Overflow
  • X Follow

Contributing to the SDK

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.

About

Sentry SDK for Ruby

sentry.io/for/ruby

Topics

crash-reportingcrash-reportserror-handlererror-monitoringhacktoberfestrubysdkstacktracetag-productionteam-web-backend

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

990 stars

Watchers

59 watching

Forks

552 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.