Conversation
Event hint could contain objects that aren't supported by ActiveJob, and that will fail the event enqueuing.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1231 +/- ##
==========================================
+ Coverage 97.92% 98.51% +0.59%
==========================================
Files 193 98 -95
Lines 8280 4450 -3830
==========================================
- Hits 8108 4384 -3724
+ Misses 172 66 -106 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@st0012 we just ran into an issue that I believe was caused by this. Serializing the I understand wanting to provide a serialized value that can be easily passed to |
|
you can access the backtrace through the event payload like: if hint["exception"]
exception = event["exception"]["values"].first
stacktrace = exception["stacktrace"]["frames"]
# which looks like this
#
# [
# {:project_root=>"/Users/st0012/projects/sentry-ruby/sentry-ruby", :abs_path=>"/some/other/path", :function=>"other_function", :lineno=>1412, :in_app=>false, :filename=>"/some/other/path"},
# {:project_root=>"/Users/st0012/projects/sentry-ruby/sentry-ruby", :abs_path=>"/path/to/some/file", :function=>"function_name", :lineno=>22, :in_app=>false, :filename=>"/path/to/some/file"}
# ]
end |
Event hint should also be serialized into a json-compatible hash to make sure ActiveJob can process it correctly.
Closes #1227