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

feat(remix): Export missing functions #10385

Merged
merged 2 commits into from
Jan 29, 2024

Conversation

Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 29, 2024

Looks like we missed re-exporting a couple of recently added functions in the Remix SDK. This PR adds the missing exports:

  • addIntegration
  • getClient
  • getCurrentScope, getIsolationScope, getGlobalScope
  • setMeasurement
  • getActiveSpan
  • startSpan, startSpanManual, startInactiveSpan
  • continueTrace
  • isInitialized

closes #10384

Copy link
Contributor

github-actions bot commented Jan 29, 2024

size-limit report 📦

Path Size
@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped) 77.93 KB (+0.07% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped) 69.13 KB (+0.1% 🔺)
@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped) 73.02 KB (+0.1% 🔺)
@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped) 62.78 KB (+0.11% 🔺)
@sentry/browser (incl. Tracing) - Webpack (gzipped) 33.18 KB (+0.21% 🔺)
@sentry/browser (incl. Feedback) - Webpack (gzipped) 31.32 KB (+0.13% 🔺)
@sentry/browser (incl. sendFeedback) - Webpack (gzipped) 31.33 KB (+0.13% 🔺)
@sentry/browser - Webpack (gzipped) 22.6 KB (+0.28% 🔺)
@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped) 75.76 KB (+0.21% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped) 67.3 KB (+0.21% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped) 33.17 KB (+0.49% 🔺)
@sentry/browser - ES6 CDN Bundle (gzipped) 24.52 KB (+0.22% 🔺)
@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (minified & uncompressed) 212.01 KB (+0.26% 🔺)
@sentry/browser (incl. Tracing) - ES6 CDN Bundle (minified & uncompressed) 100.02 KB (+0.54% 🔺)
@sentry/browser - ES6 CDN Bundle (minified & uncompressed) 73.35 KB (+0.25% 🔺)
@sentry/browser (incl. Tracing) - ES5 CDN Bundle (gzipped) 36.26 KB (+0.43% 🔺)
@sentry/react (incl. Tracing, Replay) - Webpack (gzipped) 69.54 KB (+0.09% 🔺)
@sentry/react - Webpack (gzipped) 22.63 KB (+0.24% 🔺)
@sentry/nextjs Client (incl. Tracing, Replay) - Webpack (gzipped) 86.23 KB (+0.11% 🔺)
@sentry/nextjs Client - Webpack (gzipped) 50.53 KB (+0.17% 🔺)
@sentry-internal/feedback - Webpack (gzipped) 17.21 KB (0%)
@sentry/browser (incl. browserTracingIntegration) - Webpack (gzipped) 33.07 KB (added)

Copy link
Member

@mydea mydea left a comment

Choose a reason for hiding this comment

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

would be nice to have some tests somewhere (?) and/or some code to make this easier - it's always super brittle to ensure you add a new function to all packages for re-exporting 😬

@Lms24
Copy link
Member Author

Lms24 commented Jan 29, 2024

would be nice to have some tests somewhere (?) and/or some code to make this easier

yeah I also thought about this. We can somewhat assert on these exports in e2e tests (e.g. import them where we call init and throw if they're undefined) but this also doesn't scale well. I have an idea for a script but still need to try it out.

@Lms24 Lms24 merged commit 0612090 into develop Jan 29, 2024
60 checks passed
@Lms24 Lms24 deleted the lms/feat-remix-export-missing-functions branch January 29, 2024 09:16
Lms24 added a commit that referenced this pull request Jan 30, 2024
Missed some exports in my manual pass in #10385. Test in #10389
discovered more missing exports which this PR adds or marks as
unnecessary in the re-export test.
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.

Some functions are not available in @sentry/remix
2 participants