Commit 2cfc766
authored
feat: use after_change for context changes (#651)
When an application uses `Rails.error.set_context` to set context, the
gem does not see this data until an error is reported. This change uses
the `ActiveSupport::ExecutionContext.after_change` callback so that we
can always keep track of context changes. This ensures we can report
errors with the proper context outside of Rails error report handling.1 parent 6eeed8f commit 2cfc766
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
67 | 65 | | |
68 | 66 | | |
69 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
| |||
0 commit comments