Skip to content
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

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

Merged
merged 9 commits into from Mar 27, 2023

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.

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
48 checks passed
@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.

None yet

2 participants