Skip to content

feat(replay): Add responseStatus, decodedBodySize to perf entries#7613

Merged
billyvg merged 9 commits intodevelopfrom
feat-replay-add-more-resource-attributes
Mar 27, 2023
Merged

feat(replay): Add responseStatus, decodedBodySize to perf entries#7613
billyvg merged 9 commits intodevelopfrom
feat-replay-add-more-resource-attributes

Conversation

@billyvg
Copy link
Member

@billyvg billyvg commented Mar 24, 2023

Add a few more properties to resource performance entries (e.g. script, img, etc).

  • Adds responseStatus which is new in Chrome 109 for status code
  • Adds decodedBodySize so that we can tell user if their resource was compressed or not.

billyvg added 2 commits March 24, 2023 14:41
Add a few more properties to `resource` performance entries (e.g. script, img, etc).

* Adds `responseStatus` which is new in Chrome 109 for status code
* Adds `decodedBodySize` so that we can tell user if their resource was compressed or not.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2023

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 20.56 KB (0%)
@sentry/browser - ES5 CDN Bundle (minified) 64.19 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 19.12 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified) 56.57 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 21.58 KB (0%)
@sentry/browser - Webpack (minified) 71.65 KB (0%)
@sentry/react - Webpack (gzipped + minified) 21.6 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 51.94 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 28.11 KB (+0.01% 🔺)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 26.32 KB (0%)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 44.47 KB (+0.23% 🔺)
@sentry/replay - Webpack (gzipped + minified) 38.54 KB (+0.27% 🔺)
@sentry/browser + @sentry/tracing + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 63.09 KB (+0.16% 🔺)
@sentry/browser + @sentry/replay - ES6 CDN Bundle (gzipped + minified) 56.18 KB (+0.17% 🔺)

responseStatus?: number;
};

export type PaintData = undefined;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems a bit weird? Should this be undefined?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it is a bit weird but we don't attach data for paint, so those breadcrumbs will not have a data attribute at all

@billyvg billyvg marked this pull request as ready for review March 27, 2023 21:31
@billyvg billyvg merged commit 7d080dc into develop Mar 27, 2023
@billyvg billyvg deleted the feat-replay-add-more-resource-attributes branch March 27, 2023 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants