Skip to content

fix(core): Make FunctionToString integration use SETUP_CLIENTS weakmap #10358

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
Jan 26, 2024

Conversation

AbhiPrasad
Copy link
Member

Auditing our integrations to make sure they work with the new client paradigm, also adding export type where appropriate.

@AbhiPrasad AbhiPrasad requested review from mydea, a team and stephanie-anderson and removed request for a team January 25, 2024 21:34
const _functionToStringIntegration = (() => {
return {
name: INTEGRATION_NAME,
setupOnce() {
if (hasSetup) {
Copy link
Member

Choose a reason for hiding this comment

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

do we need this? Should this not be done by setupOnce anyhow? 🤔

Copy link
Member

Choose a reason for hiding this comment

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

ah, that's for the try-catch stuff I guess?

Copy link
Member Author

Choose a reason for hiding this comment

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

do we need this? Should this not be done by setupOnce anyhow? 🤔

Actually you're right it should be taken care of by setupOnce. I'll remove.

Copy link
Contributor

github-actions bot commented Jan 25, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.9 KB (+0.03% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.11 KB (+0.06% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73 KB (+0.07% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.74 KB (+0.06% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.14 KB (+0.09% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.31 KB (+0.1% 🔺)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.32 KB (+0.09% 🔺)
@sentry/browser - Webpack (gzipped) 22.57 KB (+0.13% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.64 KB (+0.05% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.18 KB (+0.04% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.03 KB (+0.08% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.49 KB (+0.11% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 211.54 KB (+0.04% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 99.55 KB (+0.07% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.23 KB (+0.09% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.15 KB (+0.12% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.51 KB (+0.05% 🔺)
@sentry/react - Webpack (gzipped) 22.61 KB (+0.12% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.16 KB (+0.02% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.46 KB (+0.04% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB (0%)

@AbhiPrasad AbhiPrasad enabled auto-merge (squash) January 26, 2024 18:12
@AbhiPrasad AbhiPrasad merged commit 6b3f553 into develop Jan 26, 2024
@AbhiPrasad AbhiPrasad deleted the abhi-function-to-string-client branch January 26, 2024 18:15
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.

2 participants