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

fix(node): Export initOpenTelemetry #11158

Merged
merged 2 commits into from Mar 18, 2024
Merged

Conversation

timfish
Copy link
Collaborator

@timfish timfish commented Mar 18, 2024

Closes #11118

This PR exports what used to be called initOtel so that the NodeClient can be used without calling init.

If OpenTelemetry is only required for performance feature, we should also only enable it if the sample rate is above zero to save memory.

Copy link
Contributor

github-actions bot commented Mar 18, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) 82.19 KB (added)
@sentry/browser (incl. Tracing, Replay) 73.52 KB (added)
@sentry/browser (incl. Tracing, Replay with Canvas) 77.33 KB (added)
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 67.07 KB (added)
@sentry/browser (incl. Tracing) 38.15 KB (added)
@sentry/browser (incl. browserTracingIntegration) 38.15 KB (added)
@sentry/browser (incl. feedbackIntegration) 33.01 KB (added)
@sentry/browser (incl. feedbackModalIntegration) 33.09 KB (added)
@sentry/browser (incl. feedbackScreenshotIntegration) 33.1 KB (added)
@sentry/browser (incl. sendFeedback) 29.08 KB (added)
@sentry/browser 24.25 KB (added)
CDN Bundle (incl. Tracing, Replay, Feedback) 76.57 KB (added)
CDN Bundle (incl. Tracing, Replay) 71.43 KB (added)
CDN Bundle (incl. Tracing) 37.77 KB (added)
CDN Bundle 25.62 KB (added)
CDN Bundle (incl. Tracing, Replay) - uncompressed 223.88 KB (added)
CDN Bundle (incl. Tracing) - uncompressed 113.82 KB (added)
CDN Bundle - uncompressed 75.66 KB (added)
@sentry/react (incl. Tracing, Replay) 73.51 KB (added)
@sentry/react 24.27 KB (added)

@AbhiPrasad AbhiPrasad merged commit b9c060a into develop Mar 18, 2024
63 checks passed
@AbhiPrasad AbhiPrasad deleted the timfish/node/init-otel branch March 18, 2024 18:07
@mydea
Copy link
Member

mydea commented Mar 25, 2024

Closes #11118

This PR exports what used to be called initOtel so that the NodeClient can be used without calling init.

If OpenTelemetry is only required for performance feature, we should also only enable it if the sample rate is above zero to save memory.

Just to clarify, we need this also if tracing is disabled, because we also use it for the async context management.

cadesalaberry pushed a commit to cadesalaberry/sentry-javascript that referenced this pull request Apr 19, 2024
Closes getsentry#11118

This PR exports what used to be called `initOtel` so that the
`NodeClient` can be used without calling `init`.

If OpenTelemetry is only required for performance feature, we should
also only enable it if the sample rate is above zero to save memory.
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.

NodeClient does not work fully without creating via init
3 participants