Open devurandom opened 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:
prone.stacks/normalize-exception
prone.stacks/add-data
clojure.lang.ExceptionInfo
ex-data
:data
mechanism.data
exception
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.
pr-str
prone.stacks/normalize-exception
, viaprone.stacks/add-data
sets aclojure.lang.ExceptionInfo
'sex-data
as:data
on the normalized exception. This data is generally useful, so pass it on to Sentry via themechanism.data
key of theexception
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
.