-
-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow for selecting frame in sourcemaps explain (#1293)
- Loading branch information
1 parent
11dfb44
commit 196eac2
Showing
9 changed files
with
133 additions
and
19 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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
10 changes: 10 additions & 0 deletions
10
tests/integration/_cases/sourcemaps/sourcemaps-explain-select-frame-out-of-range.trycmd
This file contains 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,10 @@ | ||
``` | ||
$ sentry-cli sourcemaps explain 43a57a55cd5a4207ac520c03e1dee1b4 --frame 42 | ||
? failed | ||
✔ Fetched data for event: 43a57a55cd5a4207ac520c03e1dee1b4 | ||
✔ Event has release name: ytho-test | ||
✔ Event has a valid exception present | ||
✔ Event has a valid stacktrace present | ||
✖ Selected frame (42) is missing. | ||
|
||
``` |
10 changes: 10 additions & 0 deletions
10
tests/integration/_cases/sourcemaps/sourcemaps-explain-select-frame.trycmd
This file contains 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,10 @@ | ||
``` | ||
$ sentry-cli sourcemaps explain 43a57a55cd5a4207ac520c03e1dee1b4 --frame 2 | ||
? failed | ||
✔ Fetched data for event: 43a57a55cd5a4207ac520c03e1dee1b4 | ||
✔ Event has release name: ytho-test | ||
✔ Event has a valid exception present | ||
✔ Event has a valid stacktrace present | ||
✖ Event exception stacktrace selected frame (2) has incorrect abs_path (valid url is required). Found wrongabspath | ||
|
||
``` |
51 changes: 51 additions & 0 deletions
51
tests/integration/_responses/sourcemaps/get-event-select-frame.json
This file contains 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,51 @@ | ||
{ | ||
"event_id": "43a57a55cd5a4207ac520c03e1dee1b4", | ||
"project": 5334254, | ||
"release": "ytho-test", | ||
"dist": null, | ||
"exception": { | ||
"values": [ | ||
{ | ||
"type": "Error", | ||
"value": "whoops", | ||
"stacktrace": { | ||
"frames": [ | ||
{ | ||
"filename": "/dist/bundle.min.js", | ||
"abs_path": "wrongabspath", | ||
"lineno": 1, | ||
"colno": 456, | ||
"context_line": "{snip} tps://5b0e5845265a472ba9c269bbfa0c8388@o333688.ingest.sentry.io/5334254\",release:\"ytho-test\"}),function(t){throw new Error(\"whoops\")}()})();", | ||
"post_context": [ | ||
"//# sourceMappingURL=bundle.min.js.map" | ||
], | ||
"in_app": true | ||
}, | ||
{ | ||
"filename": "/dist/bundle.min.js", | ||
"abs_path": "http://localhost:5000/dist/bundle.min.js", | ||
"lineno": 1, | ||
"colno": 452, | ||
"context_line": "{snip} tps://5b0e5845265a472ba9c269bbfa0c8388@o333688.ingest.sentry.io/5334254\",release:\"ytho-test\"}),function(t){throw new Error(\"whoops\")}()})();", | ||
"post_context": [ | ||
"//# sourceMappingURL=bundle.min.js.map" | ||
], | ||
"in_app": true | ||
}, | ||
{ | ||
"filename": "/dist/bundle.min.js", | ||
"abs_path": "http://localhost:5000/dist/bundle.min.js", | ||
"lineno": 1, | ||
"colno": 432, | ||
"context_line": "{snip} tps://5b0e5845265a472ba9c269bbfa0c8388@o333688.ingest.sentry.io/5334254\",release:\"ytho-test\"}),function(t){throw new Error(\"whoops\")}()})();", | ||
"post_context": [ | ||
"//# sourceMappingURL=bundle.min.js.map" | ||
], | ||
"in_app": true | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
This file contains 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