Skip to content

feat(bundles): Add pluggable integrations on CDN to Sentry namespace#10452

Merged
mydea merged 1 commit intodevelopfrom
fn/pluggable-integration-cdn
Feb 2, 2024
Merged

feat(bundles): Add pluggable integrations on CDN to Sentry namespace#10452
mydea merged 1 commit intodevelopfrom
fn/pluggable-integration-cdn

Conversation

@mydea
Copy link
Copy Markdown
Member

@mydea mydea commented Feb 1, 2024

Previously, they were only put on Sentry.Integrations.XXX, now you can do e.g. Sentry.httpClientIntegration().

While at it, I also added a browser integration test for this. I also made the way we do this more future proof, as in v8 this will not be imported anymore from @sentry/integrations (which we rely on right now), plus the heuristic used to rely on integration name === filename. Now, there is a manual map of imported method names to a CDN bundle file name.

Previously, they were only put on `Sentry.Integrations.XXX`, now you can do e.g. `Sentry.httpClientIntegration()`.

While at it, I also added a browser integration test for this. I also made the way we do this more future proof, as in v8 this will not be imported anymore from `@sentry/integrations` (which we rely on right now), plus the heuristic used to rely on integration name === filename. Now, there is a manual map of imported method names to a CDN bundle file name.
@mydea mydea requested review from AbhiPrasad, Lms24 and lforst February 1, 2024 10:35
@mydea mydea self-assigned this Feb 1, 2024
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 1, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 78.14 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.38 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.3 KB (+0.09% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.99 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.38 KB (0%)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.25 KB (0%)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.33 KB (0%)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.34 KB (0%)
@sentry/browser - Webpack (gzipped) 22.6 KB (0%)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 76.1 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.66 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.5 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.66 KB (0%)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 213.5 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 101.49 KB (0%)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 74.01 KB (0%)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.63 KB (0%)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.73 KB (+0.01% 🔺)
@sentry/react - Webpack (gzipped) 22.63 KB (0%)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.5 KB (+0.01% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.8 KB (0%)
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB (0%)

@mydea mydea merged commit c1848cd into develop Feb 2, 2024
@mydea mydea deleted the fn/pluggable-integration-cdn branch February 2, 2024 07:43
onurtemizkan pushed a commit that referenced this pull request Feb 4, 2024
#10452)

Previously, they were only put on `Sentry.Integrations.XXX`, now you can
do e.g. `Sentry.httpClientIntegration()`.

While at it, I also added a browser integration test for this. I also
made the way we do this more future proof, as in v8 this will not be
imported anymore from `@sentry/integrations` (which we rely on right
now), plus the heuristic used to rely on integration name === filename.
Now, there is a manual map of imported method names to a CDN bundle file
name.
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