Skip to content

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

Merged
merged 2 commits into from
Apr 16, 2024
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 16, 2024

Added a comment for #11630 (comment)!

@mydea mydea enabled auto-merge (squash) April 16, 2024 14:44
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

Good comment!

Comment on lines 138 to 139
// Eventually we may change this if/when we update the loader to not require this field anymore
const sentry = getSentryCarrier(registry) as { hub?: AsyncContextStack };
Copy link
Member

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

Suggested change
// 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 };

Copy link
Member

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

Copy link
Member Author

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!

Copy link
Contributor

github-actions bot commented Apr 16, 2024

size-limit report 📦

Path Size
@sentry/browser 21.67 KB (0%)
@sentry/browser (incl. Tracing) 31.28 KB (0%)
@sentry/browser (incl. Tracing, Replay) 66.59 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 59.99 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 70.43 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 80.28 KB (0%)
@sentry/browser (incl. Feedback) 35.24 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal) 35.25 KB (0%)
@sentry/browser (incl. Feedback, Feedback Modal, Feedback Screenshot) 37.27 KB (0%)
@sentry/browser (incl. sendFeedback) 26.46 KB (0%)
@sentry/react 24.35 KB (0%)
@sentry/react (incl. Tracing) 34.17 KB (0%)
@sentry/vue 25.2 KB (0%)
@sentry/vue (incl. Tracing) 32.99 KB (0%)
@sentry/svelte 21.79 KB (0%)
CDN Bundle 24.03 KB (0%)
CDN Bundle (incl. Tracing) 32.58 KB (0%)
CDN Bundle (incl. Tracing, Replay) 66.22 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 82.4 KB (0%)
CDN Bundle - uncompressed 70.86 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 96.98 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 206.64 KB (0%)
@sentry/nextjs (client) 33.51 KB (0%)
@sentry/sveltekit (client) 31.77 KB (0%)
@sentry/node 124.24 KB (+0.03% 🔺)

@mydea mydea merged commit 919f60b into develop Apr 16, 2024
@mydea mydea deleted the fn/comment-async-stack branch April 16, 2024 15:19
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.

3 participants