Commit 0d3bc3d
Imagine an app throws an exception twice, from different places. The
first exception is dropped in the user's `before_send`. The second
exception is not. Should the second exception appear in Sentry?
The current state is that it won't, since `DedupeIntegration` will take
the first, dropped exception into account. When encountering the second
exception, it'll consider it a duplicate and will drop it, even though
the first exception never made it to Sentry.
In this PR, we reset `DedupeIntegration`'s `last-seen` if an event has
been dropped by `before_send`, ensuring that the next exception will be
reported.
Closes #371
---------
Co-authored-by: Anton Pirker <[email protected]>
1 parent 65132ba commit 0d3bc3d
File tree
3 files changed
+49
-0
lines changed- sentry_sdk
- integrations
- tests
3 files changed
+49
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
606 | 607 | | |
607 | 608 | | |
608 | 609 | | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
609 | 618 | | |
610 | 619 | | |
611 | 620 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
713 | 744 | | |
714 | 745 | | |
715 | 746 | | |
| |||
0 commit comments