sethtrain / raven-clj

A Clojure interface to Sentry
84 stars 29 forks source link

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

Open devurandom opened 1 year ago

devurandom commented 1 year ago

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:

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.