Skip to content

feat(core): Deprecate integration classes & Integrations.X #10198

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 17, 2024

Conversation

mydea
Copy link
Member

@mydea mydea commented Jan 16, 2024

Instead, export the functional components from core, which users should directly use.

This also adds a tiny defineIntegration utility which takes care of obscuring the actual integration implementation for external use, so this remains private and we can refactor this if we need to.

@mydea mydea requested review from lforst, Lms24 and AbhiPrasad January 16, 2024 12:39
@mydea mydea self-assigned this Jan 16, 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.

Nice!

Comment on lines 82 to 85
moduleMetadataIntegration,
requestDataIntegration,
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 want to export these here? Previously, these were not accessible directly from @sentry/bun.

Copy link
Member

Choose a reason for hiding this comment

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

Not moduleMetadataIntegration, but we might want requestDataIntegration.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK, I guess we may move the moduleMetadatIntegation to browser in v8? 🤔 if this is browser-only, no need to have & export it from core. But we can see!

Copy link
Member Author

Choose a reason for hiding this comment

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

or actually, maybe I move it there right away 🤔

@@ -74,6 +74,11 @@ export {
startInactiveSpan,
startSpanManual,
metrics,
inboundFiltersIntegration,
linkedErrorsIntegration,
moduleMetadataIntegration,
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 want to export this * requestDataIntegration here? Previously, these were not accessible directly from @sentry/deno.

functionToStringIntegration,
inboundFiltersIntegration,
linkedErrorsIntegration,
moduleMetadataIntegration,
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 want to export this here? Previously, this was not accessible directly from @sentry/node.

Comment on lines 81 to 84
moduleMetadataIntegration,
requestDataIntegration,
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 want to export these here? Previously, these were not accessible directly from `@sentry/vercel-edge.

@mydea mydea force-pushed the fn/core-integrations branch from f4cbdea to 55d14e6 Compare January 16, 2024 12:51
Copy link
Contributor

github-actions bot commented Jan 16, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.28 KB (+0.01% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 68.59 KB (-0.01% 🔽)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.23 KB (0%)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 32.61 KB (-0.02% 🔽)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.13 KB (+0.01% 🔺)
@sentry/browser - Webpack (gzipped) 22.48 KB (-0.02% 🔽)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 74.94 KB (+0.07% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 66.57 KB (+0.07% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 32.41 KB (+0.14% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.18 KB (+0.23% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 209.64 KB (+0.05% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 97.7 KB (+0.09% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 72.32 KB (+0.12% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 35.44 KB (+0.12% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 68.98 KB (-0.01% 🔽)
@sentry/react - Webpack (gzipped) 22.52 KB (-0.02% 🔽)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 85.6 KB (-0.01% 🔽)
@sentry/nextjs Client - Webpack (gzipped) 49.73 KB (+0.01% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 17.11 KB (0%)

@mydea mydea force-pushed the fn/core-integrations branch from 55d14e6 to 3593de1 Compare January 17, 2024 09:25
mydea added 2 commits January 17, 2024 10:53
Instead, export the functional components from core, which users should directly use.
@mydea mydea force-pushed the fn/core-integrations branch from 3593de1 to 6659c7f Compare January 17, 2024 09:53
@mydea mydea merged commit e50cc8a into develop Jan 17, 2024
@mydea mydea deleted the fn/core-integrations branch January 17, 2024 10:33
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