Skip to content

ref(node): Explicitly pass down node transport options #5057

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 1 commit into from
May 10, 2022

Conversation

AbhiPrasad
Copy link
Member

We enforce the transport types by assigning the generic when typing the
Node Client class (we use ClientOptions<NodeTransportOptions>).

To further refine the transport types, we remove the transport options
from the top level of the sdk init and instead require users to pass it
in under the transportOptions key explicitly.

Resolves https://getsentry.atlassian.net/browse/WEB-914

@AbhiPrasad AbhiPrasad requested review from lforst and Lms24 May 9, 2022 19:02
We enforce the transport types by assigning the generic when typing the
Node Client class (we use `ClientOptions<NodeTransportOptions>`).

To further refine the transport types, we remove the transport options
from the top level of the sdk init and instead require users to pass it
in under the `transportOptions` key explicitly.
@AbhiPrasad AbhiPrasad force-pushed the v7-abhi-node-transport-options branch from 2802762 to 7f089d4 Compare May 9, 2022 19:15
@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 18.76 KB (-6.87% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 58.58 KB (-9.35% 🔽)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 17.55 KB (-6.97% 🔽)
@sentry/browser - ES6 CDN Bundle (minified) 52.76 KB (-9% 🔽)
@sentry/browser - Webpack (gzipped + minified) 19.21 KB (-17.35% 🔽)
@sentry/browser - Webpack (minified) 62.12 KB (-23.99% 🔽)
@sentry/react - Webpack (gzipped + minified) 19.23 KB (-17.39% 🔽)
@sentry/nextjs Client - Webpack (gzipped + minified) 42.75 KB (-11.04% 🔽)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 24.42 KB (-6.34% 🔽)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 23 KB (-6.08% 🔽)

Copy link
Contributor

@lforst lforst left a comment

Choose a reason for hiding this comment

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

Nice catch. Would have forgotten about that...

@AbhiPrasad AbhiPrasad merged commit 1342c42 into 7.x May 10, 2022
@AbhiPrasad AbhiPrasad deleted the v7-abhi-node-transport-options branch May 10, 2022 13:48
@AbhiPrasad AbhiPrasad added this to the 7.0.0 milestone May 12, 2022
AbhiPrasad added a commit that referenced this pull request May 30, 2022
We enforce the transport types by assigning the generic when typing the
Node Client class (we use `ClientOptions<NodeTransportOptions>`).

To further refine the transport types, we remove the transport options
from the top level of the sdk init and instead require users to pass it
in under the `transportOptions` key explicitly.
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