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

makeMultiplexedTransport and makeFetchTransport not available in the CDN import #15041

Closed
3 tasks done
rodolfoBee opened this issue Jan 17, 2025 · 5 comments · Fixed by #15043
Closed
3 tasks done

makeMultiplexedTransport and makeFetchTransport not available in the CDN import #15041

rodolfoBee opened this issue Jan 17, 2025 · 5 comments · Fixed by #15043
Assignees
Labels
Package: browser Issues related to the Sentry Browser SDK

Comments

@rodolfoBee
Copy link
Member

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

8.47.0 and 7.117.0

Framework Version

No response

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. Try to follow the steps in this guide: https://docs.sentry.io/platforms/javascript/best-practices/micro-frontends/
  2. Use the SDK CDN import instead of npm package:
<script
  src="https://browser.sentry-cdn.com/8.47.0/bundle.tracing.replay.feedback.debug.min.js"
  crossorigin="anonymous"
></script>

Expected Result

The functions makeFetchTransport and makeMultiplexedTransport are available in the imported bundle, such as when using the npm package:

Image

Actual Result

The functions are not available:

Image

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 17, 2025
@github-actions github-actions bot added the Package: browser Issues related to the Sentry Browser SDK label Jan 17, 2025
@Lms24
Copy link
Member

Lms24 commented Jan 17, 2025

There's unfortunately a big disadvantage to adding these exports to the CDN bundles: The majority of our user base would be "punished" with increased bundle size for APIs they don't use.

That being said, there's a community PR that addresses this: #14925

I'll bring this up within our team to see if we can resolve this somehow.

@Lms24
Copy link
Member

Lms24 commented Jan 17, 2025

makeFetchTransport should be available though:

Image

@Lms24
Copy link
Member

Lms24 commented Jan 17, 2025

We decided to expose makeMultiplexedTransport as an addon CDN bundle that users can add in addition to the SDK CDN bundle. Opened #15043. I'll update docs to show how to use the bundle.

@rodolfoBee
Copy link
Member Author

@Lms24 can you provide a link to the updated documentation?

@Lms24
Copy link
Member

Lms24 commented Jan 21, 2025

@rodolfoBee sure, here's the link: getsentry/sentry-docs#12407

The new bundle wasn't released yet but we'll probably release it tomorrow. Best to follow #15113 for release progress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: browser Issues related to the Sentry Browser SDK
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants