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(node): Add scope to ANR events #11256

Merged
merged 6 commits into from Mar 25, 2024
Merged

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Mar 22, 2024

Closes #10668

Rather than inject large unchecked JavaScript strings to run via Runtime.evaluate, when the ANR integration is enabled, we add a function to global.__SENTRY_GET_SCOPES__ which can then be called via the debugger when the event loop is suspended.

This comment was marked as off-topic.

@timfish timfish marked this pull request as ready for review March 22, 2024 22:25
@timfish timfish marked this pull request as draft March 23, 2024 01:09
@timfish timfish marked this pull request as ready for review March 23, 2024 02:01
Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

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

nice!

@AbhiPrasad AbhiPrasad merged commit 693f6ca into develop Mar 25, 2024
63 checks passed
@AbhiPrasad AbhiPrasad deleted the timfish/anr-full-scope-data branch March 25, 2024 14:54
AbhiPrasad pushed a commit that referenced this pull request Mar 28, 2024
Backport of #11256

Scope wasn't working for the deprecated export (pre. integration) so I
didn't spend any time trying to fix it and just don't test this scope
feature for that.
cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
Closes getsentry#10668

Rather than inject large unchecked JavaScript strings to run via
`Runtime.evaluate`, when the ANR integration is enabled, we add a
function to `global.__SENTRY_GET_SCOPES__` which can then be called via
the debugger when the event loop is suspended.
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.

Include more scope context for ANR events
3 participants