-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
doc: Add clarifying comment for hub on ACS #11633
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good comment!
// Eventually we may change this if/when we update the loader to not require this field anymore | ||
const sentry = getSentryCarrier(registry) as { hub?: AsyncContextStack }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should probably link to the other pice of the puzzle: https://github.com/getsentry/sentry-javascript/blob/f1c4611c551816ca2fad537a6b5a17ead1b75b16/packages/core/src/sdk.ts/#L50-L62
// Eventually we may change this if/when we update the loader to not require this field anymore | |
const sentry = getSentryCarrier(registry) as { hub?: AsyncContextStack }; | |
// Eventually we may change this if/when we update the loader to not require this field anymore | |
// Related, we also write to `hub` in {@link ./sdk.ts registerClientOnGlobalHub} | |
const sentry = getSentryCarrier(registry) as { hub?: AsyncContextStack }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
which reminds me that the comment in the linked code is also a bit outdated with the renaming in #11630
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, I updated stuff to point correctly to other places!
size-limit report 📦
|
Added a comment for #11630 (comment)!