-
-
Notifications
You must be signed in to change notification settings - Fork 503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing or underreported errors for ActiveRecord::ConnectionTimeoutError
#1563
Comments
thanks for reporting. I need additional information before diving into the issue:
|
Stan, we were on one SDK at a time.
|
@chris-canipe thanks for the information 👍 does this backtrace looks similar to what you see in other services?
|
Great find! I assume this also explains why sometimes Sentry reported errors, but at a lower rate? For example, for a few errors that made it into Sentry, I'm able to verify in Splunk that they were thrown outside of middleware. I haven't seen any of the backtraces yet. We recently enabled Is this fixed by moving the Sentry middleware to a different level in the stack, or is more involved? |
I think it may be fixed by moving
I'll need to do more testing on this change to verify it works and doesn't break anything else. But it'd be great if you can try it a tell me if it works too. |
@chris-canipe I've added #1564 to fix the issue. can you try the branch and check if that fixes your issue? gem "sentry-rails", github: "getsentry/sentry-ruby", branch: "fix-#1563" |
Thank you! We've deployed this and I'll let you know what we find. It may take a while since these errors aren't common. |
@chris-canipe hey do you have some numbers now? I think if you can see a few hundreds of them it should mean it's working? otherwise I'll start working toward other directions. |
@st0012 we haven't seen any show up in Splunk yet in order to make the comparison. I'll let you know as soon as we do; it could take weeks (based on looking at past data). |
@chris-canipe I see. I've merged the fix anyway because it works in my local testing. I'll try to ship it this week. |
Describe the bug
We're seeing
ActiveRecord::ConnectionTimeoutError
errors in Airbrake and Splunk that are either:To Reproduce
Use up all pooled database connections and ask for more.
Expected behavior
The number of errors reported in Sentry are comparable to those reported in other tools.
Actual behavior
The errors are not reported in Sentry, or are reported at a much lower rate than in other tools; for example:
Environment
Sentry Config
The text was updated successfully, but these errors were encountered: