Skip to content

Conversation

@AbhiPrasad
Copy link
Member

@AbhiPrasad AbhiPrasad commented Dec 5, 2022

See: #6318 (comment)

By only declaring profilesSampleRate in NodeClientOptions, it meant that the type was not available in Sentry.init. This fixes that.

@AbhiPrasad AbhiPrasad requested review from JonasBa and Lms24 December 5, 2022 10:28
@AbhiPrasad AbhiPrasad self-assigned this Dec 5, 2022
@AbhiPrasad AbhiPrasad changed the title fix(node): Move profilesSampleRate into Node Client Options fix(node): Move profilesSampleRate into BaseNodeOptions Dec 5, 2022
@@ -0,0 +1,51 @@
import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node';
Copy link
Member

Choose a reason for hiding this comment

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

Is this test supposed to be part of this PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Nope, just forked off the wrong branch 🤦

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2022

size-limit report 📦

Path Size
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.6 KB (-0.01% 🔽)
@sentry/browser - ES5 CDN Bundle (minified) 60.69 KB (0%)
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.37 KB (+0.01% 🔺)
@sentry/browser - ES6 CDN Bundle (minified) 54.26 KB (0%)
@sentry/browser - Webpack (gzipped + minified) 20.13 KB (0%)
@sentry/browser - Webpack (minified) 65.83 KB (0%)
@sentry/react - Webpack (gzipped + minified) 20.16 KB (0%)
@sentry/nextjs Client - Webpack (gzipped + minified) 46.96 KB (0%)
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 26.44 KB (0%)
@sentry/browser + @sentry/tracing - ES6 CDN Bundle (gzipped + minified) 24.87 KB (+0.02% 🔺)
@sentry/replay ES6 CDN Bundle (gzipped + minified) 41.74 KB (-0.01% 🔽)
@sentry/replay - Webpack (gzipped + minified) 37.23 KB (0%)

@AbhiPrasad AbhiPrasad merged commit ac3453d into master Dec 5, 2022
@AbhiPrasad AbhiPrasad deleted the abhi-fix-profiles-sample-rate branch December 5, 2022 12:20
@JonasBa
Copy link
Member

JonasBa commented Dec 5, 2022

Ahh, thanks @AbhiPrasad, I wrongly assumed that was the correct type to extend 🙏🏼

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.

4 participants