-
-
Notifications
You must be signed in to change notification settings - Fork 494
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
[rails] support string errors in error reporter #2464
base: master
Are you sure you want to change the base?
[rails] support string errors in error reporter #2464
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2464 +/- ##
=======================================
Coverage 98.13% 98.13%
=======================================
Files 126 126
Lines 4761 4765 +4
=======================================
+ Hits 4672 4676 +4
Misses 89 89
|
when Exception | ||
Sentry::Rails.capture_exception(error, **options) | ||
else | ||
raise ArgumentError, "Expected an Exception or a String, got: #{error.inspect}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should not raise inside the SDK, let's use log_debug
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sl0thentr0py hmm, what's the best way of accessing logger though? I can see that the helper is defined in the LoggingHelper, but not sure which object I should use for logging, or if I should include that helper in the ErrorSubscriber?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes you can just include it
Closes #2460