Sentry-ruby: Add sentry-delayed_job

Created on 10 Dec 2020  ยท  8Comments  ยท  Source: getsentry/sentry-ruby

delayed_job enhancement sentry-delayed_job

Most helpful comment

I'll try to make a beta version of it in the upcoming weekend ๐Ÿ™‚

All 8 comments

Are there any updates to the status of sentry-delayed_job? It's currently blocking our adoption of the new sentry-ruby migration. Thanks for any info in advance!

I'll try to make a beta version of it in the upcoming weekend ๐Ÿ™‚

@st0012 would you mind elaborating in the issue description? I'm just not sure what this issue represents.

According to the Sentry documentation: "For common environments and frameworks like Rails, Rack, and others [including DelayedJob], we provide automatic integration for reporting." But after upgrading from sentry-raven to sentry-ruby, I've found that exceptions raised in the DelayedJob context are NOT being reported to Sentry. Does this issue capture the reason why?

the document you point to is for the old sentry-raven SDK. the new sentry-ruby currently doesn't support capturing errors in DelayedJob because the integration gem sentry-delayed_job is still a work in progress (which is what this issue is for).

@st0012 you are awesome โ€“ thank you for the explanation, and even more for PR #1273 ๐Ÿ™‡

I've added the gem in #1273. I think it should be working now, but I want to gather some feedback before releasing it. can anyone give it a try and tell me what can be improved ๐Ÿ™‚

you can install it with

gem "sentry-delayed_job", github: "getsentry/sentry-ruby", branch: "sentry-delayed_job"

@st0012 just followed your instructions and it's working in Rails 6.1.1 on Ruby 2.6.3. (Specifically, it's calling Sentry.capture_exception when an exception is raised in the DelayedJob context.) No deprecation warnings either. Nicely done, thanks so much! ๐ŸŽ‰

sorry for the long-waiting everyone, we've just released sentry-delayed_job yesterday ๐Ÿ˜„
although it relies on sentry-ruby 4.2.0, 4.2.0 doesn't require any extra setup compared with migrating to 4.0.

Was this page helpful?
0 / 5 - 0 ratings