René's URL Explorer Experiment


Title: feat(node): Add abnormal session support for ANR by timfish · Pull Request #9268 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(node): Add abnormal session support for ANR by timfish · Pull Request #9268 · getsentry/sentry-javascript

X Title: feat(node): Add abnormal session support for ANR by timfish · Pull Request #9268 · getsentry/sentry-javascript

Description: This PR: Adds the abnormal_mechanism property to session types Passes the latest session from main process to ANR process If ANR is triggered and there's an active session, send the abnormal session Adds a test to check for the session update This PR makes no attempt to suppress further session updates from the main app process. How does Sentry backend treat conflicting session updates? Ref: getsentry/sentry-electron#774

Open Graph Description: This PR: Adds the abnormal_mechanism property to session types Passes the latest session from main process to ANR process If ANR is triggered and there's an active session, send the abnormal s...

X Description: This PR: Adds the abnormal_mechanism property to session types Passes the latest session from main process to ANR process If ANR is triggered and there's an active session, send the abnorm...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/9268

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:56e55025-de3a-40c2-2147-fc32a5b74311
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBF90:68324:4B145C:644010:6B04BFDF
html-safe-nonceec33f5b643ba6971b45fad9dc7b1c65da6d7f372f3fc15664d09b0c3156c94df
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjkwOjY4MzI0OjRCMTQ1Qzo2NDQwMTA6NkIwNEJGREYiLCJ2aXNpdG9yX2lkIjoiNjYzNDgyNjI4MDQ4OTc2Mjc4MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac0ca36436bd85c58d89b22bd7889f410c0ae767a561af95c29f99abd93ca2b90b
hovercard-subject-tagpull_request:1558980335
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/pull/9268/files
twitter:imagehttps://avatars.githubusercontent.com/u/1150298?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1150298?s=400&v=4
og:image:altThis PR: Adds the abnormal_mechanism property to session types Passes the latest session from main process to ANR process If ANR is triggered and there's an active session, send the abnormal s...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/9268/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F9268%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F9268%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9268/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9268/files
Reloadhttps://github.com/getsentry/sentry-javascript/pull/9268/files
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues333 (333)https://github.com/getsentry/sentry-javascript/issues
Pull requests50 (50)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
AbhiPrasadhttps://github.com/AbhiPrasad
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
timfish:feat/anr-session-supporthttps://github.com/timfish/sentry-javascript/tree/feat/anr-session-support
Conversation 5 https://github.com/getsentry/sentry-javascript/pull/9268
Commits 3 https://github.com/getsentry/sentry-javascript/pull/9268/commits
Checks 0 https://github.com/getsentry/sentry-javascript/pull/9268/checks
Files changed https://github.com/getsentry/sentry-javascript/pull/9268/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9268/files
feat(node): Add abnormal session support for ANR https://github.com/getsentry/sentry-javascript/pull/9268/files#top
Show all changes 3 commits https://github.com/getsentry/sentry-javascript/pull/9268/files
5c33532 feat(node): Add abnormal session support for ANR timfish Oct 16, 2023 https://github.com/getsentry/sentry-javascript/pull/9268/commits/5c335325a9126cadb90e7123f063e04025ac6e1f
f69faa5 Notify main process of ANR so session can be cleared timfish Oct 16, 2023 https://github.com/getsentry/sentry-javascript/pull/9268/commits/f69faa5ecb0c37407db4dda39a5e50f49e7d0018
4a5fab5 try catch sending timfish Oct 16, 2023 https://github.com/getsentry/sentry-javascript/pull/9268/commits/4a5fab56b94cb7481037dc588b3ce67b0302c03d
Clear filters https://github.com/getsentry/sentry-javascript/pull/9268/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9268/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9268/files
session.ts https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-f8c1eb5dd694398572491c32e62abdec888934d60158fd92a1cf7fed02e30f1b
basic-session.js https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-95c61f8a4324e44779261b5081cfe1a6dbcf73e0bca02917b01494a4bf69b59f
basic.js https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-04c1ee8f65194d1b5f102c5776b2dd075df52ecea7034dcd41d16db4cc48693f
basic.mjs https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-3a0324eb5212c2e173ef6cc45d39c03292c09e5f3854c7bcf0dc33eba5a2f92e
forked.js https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-4b34b740ed40d85e1aea5ef26e15f68841e8a5c4e76c06d27dbb300770c5e743
test-transport.js https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-3473f5612c3261622daabeeaba01a7b4f5af72cb7466891086dbbd18b6bc80e6
test.ts https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-0af0ef940798370fb6cdd7d03fa822ab1e38d9b4cc9c50231f1210ad8cd99b3f
index.ts https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-0f2e1a45596e7f28b73fb8b1075452172f6bc433e53d161aaf39dfcb56e4858a
session.ts https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-11b10bff17e97625ed7578044dd5d8dfe0d5a57413aae77baff82a781b4473d7
packages/core/src/session.tshttps://github.com/getsentry/sentry-javascript/pull/9268/files#diff-f8c1eb5dd694398572491c32e62abdec888934d60158fd92a1cf7fed02e30f1b
View file https://github.com/timfish/sentry-javascript/blob/4a5fab56b94cb7481037dc588b3ce67b0302c03d/packages/core/src/session.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9268/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-f8c1eb5dd694398572491c32e62abdec888934d60158fd92a1cf7fed02e30f1b
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-f8c1eb5dd694398572491c32e62abdec888934d60158fd92a1cf7fed02e30f1b
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-f8c1eb5dd694398572491c32e62abdec888934d60158fd92a1cf7fed02e30f1b
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-f8c1eb5dd694398572491c32e62abdec888934d60158fd92a1cf7fed02e30f1b
packages/node-integration-tests/suites/anr/basic-session.jshttps://github.com/getsentry/sentry-javascript/pull/9268/files#diff-95c61f8a4324e44779261b5081cfe1a6dbcf73e0bca02917b01494a4bf69b59f
View file https://github.com/timfish/sentry-javascript/blob/4a5fab56b94cb7481037dc588b3ce67b0302c03d/packages/node-integration-tests/suites/anr/basic-session.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9268/{{ revealButtonHref }}
packages/node-integration-tests/suites/anr/basic.jshttps://github.com/getsentry/sentry-javascript/pull/9268/files#diff-04c1ee8f65194d1b5f102c5776b2dd075df52ecea7034dcd41d16db4cc48693f
View file https://github.com/timfish/sentry-javascript/blob/4a5fab56b94cb7481037dc588b3ce67b0302c03d/packages/node-integration-tests/suites/anr/basic.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9268/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-04c1ee8f65194d1b5f102c5776b2dd075df52ecea7034dcd41d16db4cc48693f
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-04c1ee8f65194d1b5f102c5776b2dd075df52ecea7034dcd41d16db4cc48693f
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-04c1ee8f65194d1b5f102c5776b2dd075df52ecea7034dcd41d16db4cc48693f
packages/node-integration-tests/suites/anr/basic.mjshttps://github.com/getsentry/sentry-javascript/pull/9268/files#diff-3a0324eb5212c2e173ef6cc45d39c03292c09e5f3854c7bcf0dc33eba5a2f92e
View file https://github.com/timfish/sentry-javascript/blob/4a5fab56b94cb7481037dc588b3ce67b0302c03d/packages/node-integration-tests/suites/anr/basic.mjs
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9268/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-3a0324eb5212c2e173ef6cc45d39c03292c09e5f3854c7bcf0dc33eba5a2f92e
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-3a0324eb5212c2e173ef6cc45d39c03292c09e5f3854c7bcf0dc33eba5a2f92e
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-3a0324eb5212c2e173ef6cc45d39c03292c09e5f3854c7bcf0dc33eba5a2f92e
packages/node-integration-tests/suites/anr/forked.jshttps://github.com/getsentry/sentry-javascript/pull/9268/files#diff-4b34b740ed40d85e1aea5ef26e15f68841e8a5c4e76c06d27dbb300770c5e743
View file https://github.com/timfish/sentry-javascript/blob/4a5fab56b94cb7481037dc588b3ce67b0302c03d/packages/node-integration-tests/suites/anr/forked.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9268/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-4b34b740ed40d85e1aea5ef26e15f68841e8a5c4e76c06d27dbb300770c5e743
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-4b34b740ed40d85e1aea5ef26e15f68841e8a5c4e76c06d27dbb300770c5e743
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-4b34b740ed40d85e1aea5ef26e15f68841e8a5c4e76c06d27dbb300770c5e743
packages/node-integration-tests/suites/anr/test-transport.jshttps://github.com/getsentry/sentry-javascript/pull/9268/files#diff-3473f5612c3261622daabeeaba01a7b4f5af72cb7466891086dbbd18b6bc80e6
View file https://github.com/timfish/sentry-javascript/blob/4a5fab56b94cb7481037dc588b3ce67b0302c03d/packages/node-integration-tests/suites/anr/test-transport.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9268/{{ revealButtonHref }}
packages/node-integration-tests/suites/anr/test.tshttps://github.com/getsentry/sentry-javascript/pull/9268/files#diff-0af0ef940798370fb6cdd7d03fa822ab1e38d9b4cc9c50231f1210ad8cd99b3f
View file https://github.com/timfish/sentry-javascript/blob/4a5fab56b94cb7481037dc588b3ce67b0302c03d/packages/node-integration-tests/suites/anr/test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/9268/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-0af0ef940798370fb6cdd7d03fa822ab1e38d9b4cc9c50231f1210ad8cd99b3f
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-0af0ef940798370fb6cdd7d03fa822ab1e38d9b4cc9c50231f1210ad8cd99b3f
https://github.com/getsentry/sentry-javascript/pull/9268/files#diff-0af0ef940798370fb6cdd7d03fa822ab1e38d9b4cc9c50231f1210ad8cd99b3f
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/9268/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.