Skip to content
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

feat(astro): Add bundleSizeOptimizations vite options to integration #13250

Merged
merged 6 commits into from
Aug 6, 2024

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Aug 6, 2024

The bundler-plugins still refer to the option as excludePerformanceMonitoring (here), but this is going to be renamed to excludeTracing, so I already used the new naming as discussed with @Lms24 and @mydea.

part of #13013

Copy link
Contributor

github-actions bot commented Aug 6, 2024

size-limit report 📦

Path Size
@sentry/browser 22.46 KB (0%)
@sentry/browser (incl. Tracing) 34.24 KB (0%)
@sentry/browser (incl. Tracing, Replay) 70.3 KB (0%)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 63.63 KB (0%)
@sentry/browser (incl. Tracing, Replay with Canvas) 74.69 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) 87.3 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback, metrics) 89.15 KB (0%)
@sentry/browser (incl. metrics) 26.76 KB (0%)
@sentry/browser (incl. Feedback) 39.4 KB (0%)
@sentry/browser (incl. sendFeedback) 27.08 KB (0%)
@sentry/browser (incl. FeedbackAsync) 31.73 KB (0%)
@sentry/react 25.22 KB (0%)
@sentry/react (incl. Tracing) 37.24 KB (0%)
@sentry/vue 26.61 KB (0%)
@sentry/vue (incl. Tracing) 36.09 KB (0%)
@sentry/svelte 22.59 KB (0%)
CDN Bundle 23.68 KB (0%)
CDN Bundle (incl. Tracing) 35.92 KB (0%)
CDN Bundle (incl. Tracing, Replay) 70.34 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) 75.6 KB (0%)
CDN Bundle - uncompressed 69.44 KB (0%)
CDN Bundle (incl. Tracing) - uncompressed 106.35 KB (0%)
CDN Bundle (incl. Tracing, Replay) - uncompressed 218.2 KB (0%)
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 231.09 KB (0%)
@sentry/nextjs (client) 37.08 KB (0%)
@sentry/sveltekit (client) 34.8 KB (0%)
@sentry/node 114.77 KB (0%)
@sentry/node - without tracing 89.33 KB (-0.01% 🔽)
@sentry/aws-serverless 98.51 KB (+0.01% 🔺)

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.

thanks for splitting up the PRs! LGTM!

@@ -48,6 +48,9 @@ export const sentryAstro = (options: SentryOptions = {}): AstroIntegration => {
sourcemaps: {
assets: uploadOptions.assets ?? [getSourcemapsAssetsGlob(config)],
},
bundleSizeOptimizations: {
excludePerformanceMonitoring: options.bundleSizeOptimizations?.excludeTracing || false,
Copy link
Member

Choose a reason for hiding this comment

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

m: What about passing all the bundle size optimizations through (or more specifically, defining all of them)?

Copy link
Member Author

@s1gr1d s1gr1d Aug 6, 2024

Choose a reason for hiding this comment

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

Sounds good to me, @Lms24 what do you think?

Copy link
Member

Choose a reason for hiding this comment

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

sounds good, let's do it!

@s1gr1d s1gr1d requested review from Lms24 and mydea August 6, 2024 11:02
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.

Thanks for updating! LGTM!

(let's make sure to update the PR title to reflect that we now include all options)

},
debug: options.debug ?? false,
}),
bundleSizeOptimizations: options.bundleSizeOptimizations,
Copy link
Member

Choose a reason for hiding this comment

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

h: sorry almost missed this but the vite plugin doesn't yet support excludeTracing, right?

I think we need to remap this key specifically to excludePerformanceMonitoring

@s1gr1d s1gr1d requested a review from Lms24 August 6, 2024 13:49
@s1gr1d s1gr1d changed the title feat(astro): Add bundleSizeOptimizations.excludeTracing feat(astro): Add bundleSizeOptimizations vite options to integration Aug 6, 2024
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.

Thanks for adjusting! Now we can :shipit:

@s1gr1d s1gr1d merged commit b0d4926 into develop Aug 6, 2024
96 checks passed
@s1gr1d s1gr1d deleted the sig/astro-tracing-build-option branch August 6, 2024 14:47
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