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

ref: Replace setup with preprocessEvent on Integration interface #8969

Merged
merged 1 commit into from
Sep 11, 2023

Conversation

mydea
Copy link
Member

@mydea mydea commented Sep 7, 2023

A change to #8956 based on feedback.

I figured it makes sense to also pass the client (as in the one concrete example we have we actually need it 😅 ) - not sure if this should be the first or last argument, but IMHO you probably don't need this always and then it is nicer to have (event, hint) as the API...?

@mydea mydea requested review from lforst and Lms24 September 7, 2023 09:56
@mydea mydea self-assigned this Sep 7, 2023
@mydea mydea changed the title ref: Replace setup with preprocessEvent on in Integration interface ref: Replace setup with preprocessEvent on Integration interface Sep 7, 2023
@mydea mydea force-pushed the fn/adjust-integration-hook branch 2 times, most recently from 9472141 to e779e99 Compare September 7, 2023 09:58
@github-actions
Copy link
Contributor

github-actions bot commented Sep 7, 2023

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 75.39 KB (+0.04% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 31.28 KB (+0.03% 🔺)
@sentry/browser - Webpack (gzipped) 21.88 KB (+0.02% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 69.91 KB (-0.27% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 28.22 KB (-0.68% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped) 20.23 KB (-1.26% 🔽)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 220.93 KB (-0.28% 🔽)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 85.21 KB (-0.71% 🔽)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 59.86 KB (-1.34% 🔽)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 31.12 KB (-0.55% 🔽)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 75.41 KB (+0.04% 🔺)
@sentry/react - Webpack (gzipped) 21.91 KB (+0.03% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 93.28 KB (+0.03% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.85 KB (+0.04% 🔺)

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.

I like it! Also the way how we use the client lifecycle hook to invoke the integration hook.
Keeps the use of lifecycle hooks internal and exposes a simple, well defined hook for integrations.

@mydea mydea force-pushed the fn/adjust-integration-hook branch from e779e99 to 1b0a6d0 Compare September 11, 2023 07:27
@mydea mydea force-pushed the fn/adjust-integration-hook branch from 1b0a6d0 to 100ffef Compare September 11, 2023 07:50
@mydea mydea merged commit d11db32 into fn/integration-order Sep 11, 2023
@mydea mydea deleted the fn/adjust-integration-hook branch September 11, 2023 08:58
mydea added a commit that referenced this pull request Sep 11, 2023
…8969)

A change to #8956
based on feedback.

I figured it makes sense to also pass the client (as in the one concrete
example we have we actually need it 😅 ) - not sure if this should be the
first or last argument, but IMHO you probably don't need this always and
then it is nicer to have (event, hint) as the API...?
mydea added a commit that referenced this pull request Sep 11, 2023
…8969)

A change to #8956
based on feedback.

I figured it makes sense to also pass the client (as in the one concrete
example we have we actually need it 😅 ) - not sure if this should be the
first or last argument, but IMHO you probably don't need this always and
then it is nicer to have (event, hint) as the API...?
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