Commit c54995a
fix(replay): Capture aborted/errored fetch requests in replay network tab
Aborted or network-errored fetch requests were completely absent from
the replay network tab because `_isFetchHint()` required `hint.response`
to be present. The error path in the breadcrumb handler creates hints
without a `response` property, causing the guard to return false and
silently skip replay network capture.
Change the guard to check `hint.input` instead (the fetch args array),
which is present in both success and error breadcrumb hints. The
downstream functions (`enrichFetchBreadcrumb`, `captureFetchBreadcrumbToReplay`)
already accept `Partial<FetchHint>` and handle undefined `response`.
Fixes JS-2374
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 4169bc6 commit c54995a
2 files changed
Lines changed: 52 additions & 2 deletions
File tree
- packages/replay-internal
- src/coreHandlers
- test/unit/coreHandlers
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
| 98 | + | |
| 99 | + | |
100 | 100 | | |
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
362 | 412 | | |
363 | 413 | | |
364 | 414 | | |
| |||
0 commit comments