raven-clj icon indicating copy to clipboard operation
raven-clj copied to clipboard

Add `clojure.lang.ExceptionInfo`'s `ex-data` where available

Open devurandom opened this issue 1 year ago • 0 comments

prone.stacks/normalize-exception, via prone.stacks/add-data sets a clojure.lang.ExceptionInfo's ex-data as :data on the normalized exception. This data is generally useful, so pass it on to Sentry via the mechanism.data key of the exception payload:

  • https://develop.sentry.dev/sdk/event-payloads/exception/#exception-mechanism

Since Sentry does not support nested maps (it will not display the data at all in that case), we flatten the data using pr-str.

devurandom avatar Sep 29 '23 11:09 devurandom