You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not store error if context/occurrence is not valid (#66)
This commit fixes an issue when providing invalid content inside the
error context. It also updates the documentation to explicitly state
that the context data must be JSON-encodeable.
Previously when providing incorrect context data the Error would be
stored but not the Occurrence. This produced Errors that show up on the
dashboard but cannot be opened because they have no Occurrences.
This commit updates the process to use a DB transaction so it ensures
that both the Error and Occurrence are stored properly, or not at all.
Closes#65
There are some requirements on the type of data that can be included in the context, so we recommend taking a look at `set_context/1` documentation
112
+
111
113
## Manual error tracking
112
114
113
115
If you want to report custom errors that fall outside the default integration scope, you may use `ErrorTracker.report/2`. This allows you to report an exception yourself:
0 commit comments