-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
feat(grouping): Exception Groups #48653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mattjohnsonpint
merged 16 commits into
master
from
feat/issue-grouping-for-exception-groups
May 22, 2023
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5c96dfe
Update grouping and titles for exception groups
mattjohnsonpint 32be0bf
Add tests
mattjohnsonpint 8199e01
Fix bug: Use last exception, not first.
mattjohnsonpint 5921c09
Fix typing errors
mattjohnsonpint ac1166c
fix acceptance test failures
mattjohnsonpint 432cc90
Merge branch 'master' into feat/issue-grouping-for-exception-groups
mattjohnsonpint 14dfd3e
Add span to track perf of exception group filtering
mattjohnsonpint 37cc2f9
use separate dictionary instead of patching
mattjohnsonpint 9c1e75b
Catch exceptions while fiiltering
mattjohnsonpint 0595198
Add some comments
mattjohnsonpint 68cfa47
Add tests for bad inputs
mattjohnsonpint fa82a7f
refactoring
mattjohnsonpint ef45898
Cache exception components for reuse
mattjohnsonpint 9069e47
Refactoring
mattjohnsonpint a658603
Merge branch 'master' into feat/issue-grouping-for-exception-groups
mattjohnsonpint 2b1c043
Fix typing errors
mattjohnsonpint File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
...erfaces/snapshots/test_exception/test_context_with_two_exceptions_having_mechanism.pysnap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
--- | ||
created: '2023-05-05T19:28:49.100372Z' | ||
creator: sentry | ||
source: tests/sentry/event_manager/interfaces/test_exception.py | ||
--- | ||
errors: null | ||
get_api_context: | ||
excOmitted: null | ||
hasSystemFrames: true | ||
values: | ||
- mechanism: | ||
exception_id: 1 | ||
handled: true | ||
parent_id: 0 | ||
source: __context__ | ||
type: chained | ||
module: foo.bar | ||
rawStacktrace: null | ||
stacktrace: | ||
frames: | ||
- absPath: foo/baz.py | ||
colNo: null | ||
context: [] | ||
errors: null | ||
filename: foo/baz.py | ||
function: null | ||
inApp: true | ||
instructionAddr: null | ||
lineNo: 1 | ||
module: null | ||
package: null | ||
platform: null | ||
rawFunction: null | ||
symbol: null | ||
symbolAddr: null | ||
trust: null | ||
vars: null | ||
framesOmitted: null | ||
hasSystemFrames: true | ||
registers: null | ||
threadId: null | ||
type: ValueError | ||
value: hello world | ||
- mechanism: | ||
exception_id: 0 | ||
handled: false | ||
is_exception_group: true | ||
source: __context__ | ||
type: generic | ||
module: foo.bar | ||
rawStacktrace: null | ||
stacktrace: | ||
frames: | ||
- absPath: foo/baz.py | ||
colNo: null | ||
context: [] | ||
errors: null | ||
filename: foo/baz.py | ||
function: null | ||
inApp: true | ||
instructionAddr: null | ||
lineNo: 1 | ||
module: null | ||
package: null | ||
platform: null | ||
rawFunction: null | ||
symbol: null | ||
symbolAddr: null | ||
trust: null | ||
vars: null | ||
framesOmitted: null | ||
hasSystemFrames: true | ||
registers: null | ||
threadId: null | ||
type: ValueError | ||
value: hello world | ||
tags: | ||
- - handled | ||
- 'no' | ||
- - mechanism | ||
- generic | ||
to_json: | ||
values: | ||
- mechanism: | ||
exception_id: 1 | ||
handled: true | ||
parent_id: 0 | ||
source: __context__ | ||
type: chained | ||
module: foo.bar | ||
stacktrace: | ||
frames: | ||
- abs_path: foo/baz.py | ||
filename: foo/baz.py | ||
in_app: true | ||
lineno: 1 | ||
type: ValueError | ||
value: hello world | ||
- mechanism: | ||
exception_id: 0 | ||
handled: false | ||
is_exception_group: true | ||
source: __context__ | ||
type: generic | ||
module: foo.bar | ||
stacktrace: | ||
frames: | ||
- abs_path: foo/baz.py | ||
filename: foo/baz.py | ||
in_app: true | ||
lineno: 1 | ||
type: ValueError | ||
value: hello world | ||
to_string: "ValueError: hello world\n File \"foo/baz.py\", line 1\n\nValueError:\ | ||
\ hello world\n File \"foo/baz.py\", line 1" |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.