René's URL Explorer Experiment


Title: Sentry produces incorrect data when async code is involved · Issue #4071 · getsentry/sentry-javascript · GitHub

Open Graph Title: Sentry produces incorrect data when async code is involved · Issue #4071 · getsentry/sentry-javascript

X Title: Sentry produces incorrect data when async code is involved · Issue #4071 · getsentry/sentry-javascript

Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Package + Version @sentry...

Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/4071

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Sentry produces incorrect data when async code is involved","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n\r\n## Package + Version\r\n\r\n- [x] `@sentry/node`\r\n\r\n### Version:\r\n\r\n```\r\n6.13.3\r\n```\r\n\r\n## Description\r\n\r\nWhen dealing with `async` code sentry fails to properly record data. Not only does it fail to record data, it also constantly adds bad data. \r\n\r\n**Exception 1**: The problem is somewhat hidden when you deal with a context that sits in a sandbox environment which only exists for the duration of ONE AND ONLY ONE transaction. The most popular example would be a browser session, but since we're speaking node scenarios the other example would be a \"cloud function\" (ie. pops into existence per request, and only ever handles hopefully the one transactions); there's also the scenarios that use _actual threads_ (which are rare in the current ecosystem). Needless to say, those 3 I just mentioned are also technically only fine so long as they use only one transactions; if more then one is used for any reason they're suddenly going to have bad data.\r\n\r\n**Exception 2**: The problem is also hidden when transactions are completely dependent on user input (eg. user has to click some navigation item) and also happen faster then user input. This creates an artificial serial nature to them, hiding the fact that if more then one run at once they botch things since no more then one would ever run at once. _However, the more complex the system, the less likely this exception will save you._\r\n\r\nThe problem is most evident and most aggravating in the scenario of a http server (which arguably covers a lot of the use cases for sentry with nodejs). Since a http server will pickup requests and work on them as-they-come, regardless of if the previous one is finished, sentry has to work perfectly with 2, 3, 1000 transactions running simultaneously. \r\n\r\nIn general, with your average http server (and similar use cases), it's your job to keep your stuff in one request out of the others. This isn't particularly hard normally since all it means is: don't use globals. _Unfortunately sentry seems to do just that, for everything._\r\n\r\nI've read though maybe 50 issues, and this problem has been brought before under various forms, some more direct then others. The solution has also been mentioned several times. And I've also seen the reply of \"works for us\" with the not-very obvious subtext \"in this environment where only one transaction would ever exist before the process exists\".\r\n\r\nSo, I'll make this very very simple, by giving you some code you can easily run (and is in accordence to what your documentation, responses to issues, etc are saying is the \"correct way\") along with screenshots of your dashboards with datapoints that are as obvious as I can possibly make them for you.\r\n\r\n---\r\n\r\nThere will be only one file, so just copy all the blocks in a `main.mjs` file; `.mjs` is the current nodejs of saying the file uses modern imports.\r\n\r\nFirst some basic boilerplate.\r\n```javascript\r\nimport Sentry from '@sentry/node';\r\n\r\nconst SENTRY_DSN = \"\"; // add your test project DSN here\r\n\r\nSentry.init({\r\n\r\n\tdsn: SENTRY_DSN,\r\n\r\n\trelease: 'v1', // increment to get clean test sample\r\n\r\n\t// Set tracesSampleRate to 1.0 to capture 100%\r\n\t// of transactions for performance monitoring.\r\n\t// We recommend adjusting this value in production\r\n\ttracesSampleRate: 1.0\r\n\r\n});\r\n```\r\n\r\nNext we'll add a function to help simulate \"real world long async operations\"\r\n\r\n```js\r\nasync function delay(time, fn) {\r\n\treturn new Promise((resolve) => {\r\n\t\tsetTimeout(async () => {\r\n\t\t\tresolve(await fn());\r\n\t\t}, time);\r\n\t});\r\n}\r\n```\r\n\r\nNext we'll add a function that simulates all the breadcrumbs sentry adds whenever some random 3rd party library is used god knows where in dependencies. The parameter `theRealTransaction` is only used to make it obvious what the breadcrumbs and spans _actually originate from_.\r\n```js\r\nasync function randomThirdPartyIntegration(theRealTransaction) {\r\n\r\n\t// eg. \"Got\" library or whatever you guys are doing that's capturing HTTP\r\n\r\n\t// This context intentionally doesn't have access to objects in parameters\r\n\t// or other methods since that's how it typically happens in the real world.\r\n\r\n\tlet hub = Sentry.getCurrentHub();\r\n\tlet scope = hub.getScope();\r\n\tlet transaction = scope.getTransaction();\r\n\r\n\tlet span;\r\n\tif (transaction) {\r\n\t\tspan = transaction.startChild({\r\n\t\t\top: 'http_req',\r\n\t\t\tdescription: `http://google.com (real transaction: ${theRealTransaction})`\r\n\t\t});\r\n\t}\r\n\r\n\tscope.addBreadcrumb({\r\n\t\tcategory: 'http',\r\n\t\tmessage: `REQ http://google.com [Start] (real transaction: ${theRealTransaction})`\r\n\t});\r\n\r\n\treturn await delay(300, () => {\r\n\t\tscope.addBreadcrumb({\r\n\t\t\tcategory: 'http',\r\n\t\t\tmessage: `REQ http://google.com [End] (real transaction: ${theRealTransaction})`\r\n\t\t});\r\n\t\tif (span) {\r\n\t\t\tspan.finish();\r\n\t\t}\r\n\t});\r\n\r\n}\r\n```\r\n\r\nNext we'll create a function that simulates what may happen in typical http server (or whatever else) request handle; we'll call it `exampleInput` since it will be the only function that takes input in theory (our `randomThirdPartyIntegration` is also a dependency of it).\r\n\r\n_Edit 1: Original function had incorrect tag code. (As such tags errors were ignored, does not affect rest of issue) Scope has been added to exception handler, to be even more correct. (Still produces same problems)_\r\n```js\r\nasync function exampleInput ({\r\n\tname, // the name of this transaction\r\n\tuser, // the user for the transaction\r\n\tthrowsError,\r\n\ttimers: { // delays between actions\r\n\t\taction1,\r\n\t\taction2,\r\n\t\taction3\r\n\t}\r\n}) {\r\n\r\n\tconst tagName = name.replace('#', '');\r\n\r\n\tconst hub = Sentry.getCurrentHub();\r\n\tconst scope = hub.pushScope();\r\n\r\n\tscope.setUser({ username: user });\r\n\r\n\tconst transaction = hub.startTransaction({\r\n\t\top: \"test\",\r\n\t\tname: `Test Transaction ${name}`,\r\n\t});\r\n\r\n\tscope.setSpan(transaction);\r\n\r\n\ttry {\r\n\r\n\t\t// Tag\r\n\r\n\t\tscope.setTag(`T${tagName} Tag 1`, 'yes');\r\n\r\n\t\t// Action 1\r\n\r\n\t\tlet span1 = transaction.startChild({\r\n\t\t\top: 'action',\r\n\t\t\tdescription: `Transaction ${name} Action #1`\r\n\t\t})\r\n\r\n\t\ttry {\r\n\t\t\tawait delay(action1, () => {\r\n\t\t\t\tscope.addBreadcrumb({\r\n\t\t\t\t\tcategory: 'step',\r\n\t\t\t\t\tmessage: `Transaction ${name} Action #1`\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tspan1.finish();\r\n\t\t}\r\n\r\n\t\t// Tag\r\n\r\n\t\tscope.setTag(`T${tagName} Tag 2`, 'yes')\r\n\r\n\t\t// Action 2\r\n\r\n\t\tlet span2 = transaction.startChild({\r\n\t\t\top: 'action',\r\n\t\t\tdescription: `Transaction ${name} Action #2`\r\n\t\t})\r\n\r\n\t\ttry {\r\n\t\t\tawait delay(action2, () => {\r\n\t\t\t\tscope.addBreadcrumb({\r\n\t\t\t\t\tcategory: 'step',\r\n\t\t\t\t\tmessage: `Transaction ${name} Action #2`\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tspan2.finish();\r\n\t\t}\r\n\r\n\t\t// Random Third Party Dependency\r\n\r\n\t\tlet span3 = transaction.startChild({\r\n\t\t\top: 'third_party',\r\n\t\t\tdescription: `Transaction ${name} Third-Party Thing`\r\n\t\t});\r\n\r\n\t\ttry {\r\n\t\t\tawait randomThirdPartyIntegration(name);\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tspan3.finish();\r\n\t\t}\r\n\r\n\t\t// Tag\r\n\r\n\t\tscope.setTag(`T${tagName} Tag 3`, 'yes')\r\n\r\n\t\tif (throwsError) {\r\n\t\t\tthrow new Error(\"Test Error: Something went wrong\");\r\n\t\t}\r\n\r\n\t\t// Action 3\r\n\r\n\t\tlet span4 = transaction.startChild({\r\n\t\t\top: 'action',\r\n\t\t\tdescription: `Transaction ${name} Action #3`\r\n\t\t});\r\n\r\n\t\ttry {\r\n\t\t\tawait delay(action3, () => {\r\n\t\t\t\tscope.addBreadcrumb({\r\n\t\t\t\t\tcategory: 'step',\r\n\t\t\t\t\tmessage: `Transaction ${name} Action #3`\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tspan4.finish();\r\n\t\t}\r\n\r\n\t\t// Tag\r\n\r\n\t\tscope.setTag(`T${tagName} Tag 4`, 'yes');\r\n\r\n\t}\r\n\tcatch (err) {\r\n\t\tSentry.captureException(err, scope)\r\n\t}\r\n\tfinally {\r\n\t\thub.popScope();\r\n\t\ttransaction.finish();\r\n\t}\r\n\r\n}\r\n```\r\nAnd, finally we'll simulate some transactions. I've included a Timeline, but be aware that the timeline isn't something that will necessarily happen guaranteed as it suggests, its simply where the current settings in the example actually align if plotted on a timeline.\r\n```js\r\n\r\n// The following simulates what a basic http server would do\r\n// We don't wait for one transaction to finish before other starts because\r\n// no sane server in the world does that sh*t\r\n\r\n// a1 = action1, a2 = action2, a3 = action3\r\n//\r\n// Timeline (ms)      0        300  400  500  600  700  800  900  1000  1100\r\n// -----------------------------------------------------------------------------\r\n// Transaction 1      start              a1             a2              a3\r\n// Transaction 2      start    a1             a2             a3\r\n// Transaction 3      start         a1             a2             a3\r\n// Transaction 3      start                   a1   a2 -> err\r\n\r\nexampleInput ({\r\n\tname: '#1',\r\n\tuser: 'transaction1_user',\r\n\tthrowsError: false,\r\n\ttimers: {\r\n\t\taction1: 500,\r\n\t\taction2: 300,\r\n\t\taction3: 300\r\n\t}\r\n})\r\n\r\nexampleInput ({\r\n\tname: '#2',\r\n\tuser: 'transaction2_user',\r\n\tthrowsError: false,\r\n\ttimers: {\r\n\t\taction1: 300,\r\n\t\taction2: 300,\r\n\t\taction3: 300\r\n\t}\r\n})\r\n\r\nexampleInput ({\r\n\tname: '#3',\r\n\tuser: 'transaction3_user',\r\n\tthrowsError: false,\r\n\ttimers: {\r\n\t\taction1: 400,\r\n\t\taction2: 300,\r\n\t\taction3: 300\r\n\t}\r\n})\r\n\r\nexampleInput ({\r\n\tname: '#4',\r\n\tuser: 'transaction4_user',\r\n\tthrowsError: true,\r\n\ttimers: {\r\n\t\taction1: 600,\r\n\t\taction2: 100,\r\n\t\taction3: 100\r\n\t}\r\n})\r\n```\r\nTo run this just do. (after you provide the SENTRY_DSN) \r\n```\r\nnode ./main.mjs\r\n```\r\nYou can also change the release to have a clean copy you can filter to in transactions.\r\n\r\n---\r\n\r\nNow lets look at what sentry has to say after running it once. I'll highlight all the mistakes I can spot with red arrows (there may be more).\r\n\r\n![transactions](https://user-images.githubusercontent.com/338910/137601443-c46dd15a-abb0-412b-b94b-87dd12f36329.jpg)\r\n\r\nIn the above transaction 1 doesn't have a user, even though we set user on every transactions. \r\n\r\n![transaction1](https://user-images.githubusercontent.com/338910/137602126-5fa297ce-c84d-4165-a07b-ad516b027522.jpg)\r\n\r\nAbove is Transaction 1. We're missing the spans generated by the `randomThirdPartyIntegration` function itself, and we're missing all breadcrumbs.\r\n\r\n![transaction2](https://user-images.githubusercontent.com/338910/137602483-f1851546-e6ca-4af1-b989-e57b695c3688.jpg)\r\n\r\nSecond transaction is also incorrect.\r\n\r\n![transaction3](https://user-images.githubusercontent.com/338910/137602485-b3c08f00-02d2-4606-a3f2-a6e59bb83af8.jpg)\r\n\r\nThird transaction somehow got wrong user and for some reason managed to miss the 3rd action breadcrumb. \r\n\r\n![transaction4](https://user-images.githubusercontent.com/338910/137602487-2ba8da42-de40-4120-a558-d0fc51079fb8.jpg)\r\n\r\nFourth transaction also got wrong user and also has 3rd party spans from transaction 2 and 3.\r\n\r\n![error](https://user-images.githubusercontent.com/338910/137602490-07ea8fd9-4496-4f90-ab0d-368fdc5d9a5c.jpg)\r\n\r\nThe 4th transaction was set to also throw a error. Above we can see what we get in the error. Why are we getting in the error breadcrumbs that never appear in the transactions themselves?\r\n\r\n---\r\n\r\nAnyway, so how is this fixed? \r\n\r\nTechnically speaking there are three approaches. \r\n\r\nThe first is to use is to use [Async Context Tracking](https://nodejs.org/api/async_context.html#async_context_class_asynclocalstorage) that is made available as stable api from nodejs 16 onwards. This doesn't solve all the problems with how (from a quick glance at the code) sentry seems to work, but it does mean sentry is able to consistently get the real context with out the use of globals. Specifically the only parts it doesnt' solve are how sentry currently works with scope; which is not even clear to me how exactly this \"ever merging\" scope is suppose to work with what is essentially \"isolated contexts\" (eg. http requests, work queues, etc)\r\n\r\nThe second method will work in all versions of node, including prior versions (and people paranoid about perf impact of async context tracking), and the method is to just REQUIRE every operation pass the transaction object. So things like `Sentry.captureException(err)` should really be `Sentry.captureException(err, transaction)` where the transaction is ignored if null (and I mean IGNORED, no guessing of what it might be, there is none). Scope should just be `transaction.getScope()`.\r\n\r\nThe third method, and this is purely only for these special cases that sentry devs claim \"works for them\" is to have a method `Sentry.setMasterTransaction` that works as follows: if no transaction is set, set the transaction as the master; if a master is already set and not finished then error out and invalidate the master and the current transaction; if the master is set but finished (not counting transport costs), replace the current master with the new transaction. Essentially, you can have your \"global transaction\" but sentry guarantees you won't shoot yourself in the foot with it.\r\n\r\n","author":{"url":"https://github.com/srcspider","@type":"Person","name":"srcspider"},"datePublished":"2021-10-16T21:43:37Z","url":"https://github.com/getsentry/sentry-javascript/issues/4071"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2cd5926c-c057-8eb9-03c9-600d24b99a2d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E8C:AA473:7D2031:ABF369:6B047C53
html-safe-nonce53bc9f57b0ca23003c7b56a6fd7786eb43d05192eb525f67d5b873bd4d82f4be
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RThDOkFBNDczOjdEMjAzMTpBQkYzNjk6NkIwNDdDNTMiLCJ2aXNpdG9yX2lkIjoiMjA0NDEwNDIyMDc3MjQzMjk3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac01aad6df37b491afb4d14c13127b7637ad0042b3d0a5d03e710960656165d0aa
hovercard-subject-tagissue:1028154545
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/4071/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b4367a27f078ee4c15985cbeb03aed8837849b8954bedfdc3c0cc6c14ef07d95/getsentry/sentry-javascript/issues/4071
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4367a27f078ee4c15985cbeb03aed8837849b8954bedfdc3c0cc6c14ef07d95/getsentry/sentry-javascript/issues/4071
og:image:altReview the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesrcspider
hostnamegithub.com
expected-hostnamegithub.com
None0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseed3f2e01f6b7672780c586c8af0e72726374d7b6
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/4071#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F4071
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%2Fissues%2F4071
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4071
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4071
Reloadhttps://github.com/getsentry/sentry-javascript/issues/4071
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues339 (339)https://github.com/getsentry/sentry-javascript/issues
Pull requests53 (53)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
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4071
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4071
Sentry produces incorrect data when async code is involvedhttps://github.com/getsentry/sentry-javascript/issues/4071#top
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
Workflow 2.0: JS Improvement for Grouping Errorshttps://github.com/getsentry/sentry-javascript/milestone/17
https://github.com/srcspider
srcspiderhttps://github.com/srcspider
on Oct 16, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issue-1028154545
https://docs.sentry.io/https://docs.sentry.io/
https://github.com/getsentry/sentry-javascript/issueshttps://github.com/getsentry/sentry-javascript/issues
https://github.com/getsentry/sentry-javascript/releaseshttps://github.com/getsentry/sentry-javascript/releases
https://user-images.githubusercontent.com/338910/137601443-c46dd15a-abb0-412b-b94b-87dd12f36329.jpg
https://user-images.githubusercontent.com/338910/137602126-5fa297ce-c84d-4165-a07b-ad516b027522.jpg
https://user-images.githubusercontent.com/338910/137602483-f1851546-e6ca-4af1-b989-e57b695c3688.jpg
https://user-images.githubusercontent.com/338910/137602485-b3c08f00-02d2-4606-a3f2-a6e59bb83af8.jpg
https://user-images.githubusercontent.com/338910/137602487-2ba8da42-de40-4120-a558-d0fc51079fb8.jpg
https://user-images.githubusercontent.com/338910/137602490-07ea8fd9-4496-4f90-ab0d-368fdc5d9a5c.jpg
Async Context Trackinghttps://nodejs.org/api/async_context.html#async_context_class_asynclocalstorage
Nexthttps://github.com/getsentry/sentry-javascript/issues/4071?timeline_page=1
getsantryhttps://github.com/apps/getsantry
Status: Untriagedhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Status%3A%20Untriaged%22
on Oct 16, 2021https://github.com/getsentry/sentry-javascript/issues/4071#event-5473521246
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946529635
https://github.com/srcspider
srcspiderhttps://github.com/srcspider
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946704385
@andreialecuhttps://github.com/andreialecu
https://user-images.githubusercontent.com/338910/137915258-59a823aa-5a3b-4295-81f6-b1513a7da487.png
https://user-images.githubusercontent.com/338910/137915310-10680130-fe82-4ac5-8e8d-3c5ff67891cb.png
https://user-images.githubusercontent.com/338910/137915428-1228f74f-56b4-4be5-8c3e-707e750d18c5.png
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946730487
sentry-javascript/packages/hub/src/hub.tshttps://github.com/getsentry/sentry-javascript/blob/99f9b5580d80b167e2d833fbc0e22972ab59b016/packages/hub/src/hub.ts#L132-L148
99f9b55https://github.com/getsentry/sentry-javascript/commit/99f9b5580d80b167e2d833fbc0e22972ab59b016
#3572https://github.com/getsentry/sentry-javascript/issues/3572
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946742368
https://docs.sentry.io/platforms/javascript/enriching-events/scopes/#whats-a-scope-whats-a-hubhttps://docs.sentry.io/platforms/javascript/enriching-events/scopes/#whats-a-scope-whats-a-hub
https://github.com/derekrprice
derekrpricehttps://github.com/derekrprice
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946835326
@andreialecuhttps://github.com/andreialecu
#3572https://github.com/getsentry/sentry-javascript/issues/3572
#3572https://github.com/getsentry/sentry-javascript/issues/3572
@srcspiderhttps://github.com/srcspider
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946840500
nodejs/help#2537https://github.com/nodejs/help/issues/2537
nodejs/help#2546https://github.com/nodejs/help/issues/2546
nodejs/node#33723https://github.com/nodejs/node/issues/33723
https://jira.mongodb.org/browse/NODE-3010https://jira.mongodb.org/browse/NODE-3010
Automattic/mongoose#10020https://github.com/Automattic/mongoose/issues/10020
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946935926
https://github.com/derekrprice
derekrpricehttps://github.com/derekrprice
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946942971
@andreialecuhttps://github.com/andreialecu
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-946960410
@derekrpricehttps://github.com/derekrprice
https://github.com/derekrprice
derekrpricehttps://github.com/derekrprice
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-947056350
@andreialecuhttps://github.com/andreialecu
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 19, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-947070648
sentry-javascript/packages/hub/src/hub.tshttps://github.com/getsentry/sentry-javascript/blob/111ea284047f54f50dadb075be2fc4d367b826a0/packages/hub/src/hub.ts#L124-L126
111ea28https://github.com/getsentry/sentry-javascript/commit/111ea284047f54f50dadb075be2fc4d367b826a0
https://github.com/srcspider
srcspiderhttps://github.com/srcspider
on Oct 20, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-947423413
@andreialecuhttps://github.com/andreialecu
nodejs/help#2537https://github.com/nodejs/help/issues/2537
nodejs/help#2546https://github.com/nodejs/help/issues/2546
nodejs/node#33723https://github.com/nodejs/node/issues/33723
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Oct 20, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-947428274
@srcspiderhttps://github.com/srcspider
https://stackoverflow.com/questions/64330910/nodejs-asynclocalstorage-getstore-return-undefinedhttps://stackoverflow.com/questions/64330910/nodejs-asynclocalstorage-getstore-return-undefined
apollographql/apollo-server#2042https://github.com/apollographql/apollo-server/issues/2042
Automattic/mongoose#10020 (comment)https://github.com/Automattic/mongoose/issues/10020#issuecomment-946908407
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Oct 21, 2021https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-948652533
#3751https://github.com/getsentry/sentry-javascript/issues/3751
#3660https://github.com/getsentry/sentry-javascript/issues/3660
https://github.com/JVMartin
JVMartinhttps://github.com/JVMartin
on Jan 31, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1410972001
@AbhiPrasadhttps://github.com/AbhiPrasad
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Jan 31, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1411046875
#3660https://github.com/getsentry/sentry-javascript/issues/3660
#5878https://github.com/getsentry/sentry-javascript/discussions/5878
domainhttps://nodejs.org/api/domain.html
expresshttps://github.com/getsentry/sentry-javascript/blob/fd4db0d80dfcb0ae146a0eca4ee63c42bb80fd4e/packages/node/src/handlers.ts#L185-L189
nextjshttps://github.com/getsentry/sentry-javascript/blob/fd4db0d80dfcb0ae146a0eca4ee63c42bb80fd4e/packages/nextjs/src/server/wrapApiHandlerWithSentry.ts#L63-L66
remixhttps://github.com/getsentry/sentry-javascript/blob/fd4db0d80dfcb0ae146a0eca4ee63c42bb80fd4e/packages/remix/src/utils/instrumentServer.ts#L393-L399
AsyncLocalStoragehttps://github.com/cloudflare/workerd/pull/208
production profiling sdkhttps://github.com/getsentry/profiling-node
support for local variables in stacktraceshttps://docs.sentry.io/platforms/node/configuration/integrations/default-integrations/#localvariables
https://github.com/JVMartin
JVMartinhttps://github.com/JVMartin
on Jan 31, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1411111566
@AbhiPrasadhttps://github.com/AbhiPrasad
#5808 (comment)https://github.com/getsentry/sentry-javascript/issues/5808#issuecomment-1261319735
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1411763936
@JVMartinhttps://github.com/JVMartin
https://gist.github.com/andreialecu/40cb13c01b0d88c8163bbec3de59c580https://gist.github.com/andreialecu/40cb13c01b0d88c8163bbec3de59c580
https://github.com/JVMartin
JVMartinhttps://github.com/JVMartin
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1412466395
@andreialecuhttps://github.com/andreialecu
https://github.com/JVMartin
JVMartinhttps://github.com/JVMartin
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1412478336
@andreialecuhttps://github.com/andreialecu
https://docs.sentry.io/platforms/node/performance/database/auto-instrument/https://docs.sentry.io/platforms/node/performance/database/auto-instrument/
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1412522157
https://github.com/JVMartin
JVMartinhttps://github.com/JVMartin
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1412570979
@andreialecuhttps://github.com/andreialecu
https://github.com/andreialecu
andreialecuhttps://github.com/andreialecu
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1412623561
https://nodejs.org/api/domain.htmlhttps://nodejs.org/api/domain.html
https://github.com/JVMartin
JVMartinhttps://github.com/JVMartin
on Feb 1, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1412786669
@andreialecuhttps://github.com/andreialecu
https://github.com/timfish
timfishhttps://github.com/timfish
on Apr 6, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1498972999
an issuehttps://github.com/getsentry/sentry-javascript/issues/7691
https://github.com/derekrprice
derekrpricehttps://github.com/derekrprice
on Apr 6, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1499356770
@timfishhttps://github.com/timfish
https://github.com/timfish
timfishhttps://github.com/timfish
on Apr 6, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1499363958
tc39 async context proposalhttps://github.com/tc39/proposal-async-context
https://github.com/AbhiPrasad
AbhiPrasadhttps://github.com/AbhiPrasad
on Apr 14, 2023https://github.com/getsentry/sentry-javascript/issues/4071#issuecomment-1508335961
7.48.0https://github.com/getsentry/sentry-javascript/releases/tag/7.48.0
https://docs.sentry.io/platforms/node/configuration/async-context/https://docs.sentry.io/platforms/node/configuration/async-context/
@timfishhttps://github.com/timfish
AbhiPrasadhttps://github.com/AbhiPrasad
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Apr 14, 2023https://github.com/getsentry/sentry-javascript/issues/4071#event-9006755993
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/4071
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/4071
Meta: Breakinghttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Meta%3A%20Breaking%22
Type: Improvementhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Type%3A%20Improvement%22
Workflow 2.0: JS Improvement for Grouping Errorshttps://github.com/getsentry/sentry-javascript/milestone/17
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.