Skip to content

fix(tracing): Fix missing page load metrics in Electron renderer #5187

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

Merged
merged 2 commits into from
Jun 2, 2022

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented May 31, 2022

Electron renderers can have a combined Chrome and node.js context which can cause it to be detected as node.js when in fact it has full browser features.

This PR simplifies the detection of the browser performance API so that it doesn't fail to record page load metrics when running in an Electron renderer with mixed context.

@timfish timfish marked this pull request as draft May 31, 2022 21:17
@timfish timfish marked this pull request as ready for review May 31, 2022 23:04
@AbhiPrasad AbhiPrasad merged commit ed2f9be into getsentry:master Jun 2, 2022
@timfish timfish deleted the fix/page-load-metrics-electron branch September 27, 2022 12:31
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