Commit fc5f651
fix(er): proactively remove exception fields [backport 3.14] (#14663)
Backport ceded88 from #14649 to 3.14.
## Description
Exception Replay introduces an unexpected interaction with Celery when
tasks raise custom exceptions with mandatory arguments. It seems that
holding on to exception fields, such as __cause__, for longer than
necessary causes Celery to produce bad pickled responses that are not
handled by the framework. We therefore proactively clear up our tracking
of the exception fields that we want to capture to prevent Celery tasks
from crashing the application.
Co-authored-by: Gabriele N. Tornetta <[email protected]>1 parent 6a6beed commit fc5f651
File tree
2 files changed
+12
-0
lines changed- ddtrace/debugging/_signal
- releasenotes/notes
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
362 | 369 | | |
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
0 commit comments