Skip to content

Commit d4d9d2a

Browse files
committed
feat(replay): Add new body size field to Network table
We moved the size field in the sdk in getsentry/sentry-javascript#7589 Note that this field is for XHR/fetch and reflects the decoded body size whereas the other `data.size` fields are *transfer* size (i.e. over the network). We may want to consider changing to show decoded body size for all, though that was only recently added to the SDK.
1 parent 364b48f commit d4d9d2a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

static/app/views/replays/detail/network/networkTableCell.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ const NetworkTableCell = forwardRef<HTMLDivElement, Props>(
7878
ref,
7979
style,
8080
};
81-
const size = span.data.size ?? span.data.responseBodySize;
81+
82+
// `data.responseBodySize` is from SDK version 7.44-7.45
83+
const size = span.data.size ?? span.data.response?.size ?? span.data.responseBodySize;
8284

8385
const renderFns = [
8486
() => (

0 commit comments

Comments
 (0)