Skip to content

docs(js): Add CDN tab to manual multiplexed transport examples#17334

Merged
Lms24 merged 1 commit intomasterfrom
add-cdn-tab-manual-multiplexed
Apr 14, 2026
Merged

docs(js): Add CDN tab to manual multiplexed transport examples#17334
Lms24 merged 1 commit intomasterfrom
add-cdn-tab-manual-multiplexed

Conversation

@sentry-junior
Copy link
Copy Markdown
Contributor

@sentry-junior sentry-junior bot commented Apr 14, 2026

Summary

Adds CDN/Loader Bundle code tabs to the Manually Route Errors to Different Projects section of the micro-frontends best practices page.

Previously, the 'Automatically Route Errors' section already had NPM + CDN tabs, but both manual sub-sections ('Using the Default Matcher' and 'Using a Custom Matcher') only showed NPM code.

Changes

  • Using the Default Matcher: added a CDN tab that loads bundle.min.js + multiplexedtransport.min.js and calls Sentry.makeMultiplexedTransport / Sentry.captureException via the global Sentry object, including Sentry.MULTIPLEXED_TRANSPORT_EXTRA_KEY.
  • Using a Custom Matcher: added a CDN tab that loads the same two bundles and shows the custom matcher callback via the global object.
  • Promoted the two bare js fences to javascript {tabTitle:NPM} to match the tab convention used in the rest of the file.

The pattern follows the existing CDN tab in the 'Automatically Route Errors' section directly above, using the same @inject version/checksum helpers for integrity attributes.

Fixes a gap reported via Slack support where CDN-only users (e.g. customers not bundling) couldn't find guidance on using makeMultiplexedTransport without npm.

Add CDN/Loader Bundle code tabs alongside the existing NPM examples in
the 'Manually Route Errors to Different Projects' section of the
micro-frontends best practices page.

Both the 'Using the Default Matcher' and 'Using a Custom Matcher' sections
now show how to load bundle.min.js + multiplexedtransport.min.js from the
CDN and then call Sentry.makeMultiplexedTransport / Sentry.captureException
using the global Sentry object, consistent with the CDN tab pattern already
present in the 'Automatically Route Errors' section above.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sentry-docs Ready Ready Preview, Comment Apr 14, 2026 0:45am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
develop-docs Ignored Ignored Apr 14, 2026 0:45am

Request Review

@Lms24 Lms24 self-requested a review April 14, 2026 12:42
@Lms24 Lms24 marked this pull request as ready for review April 14, 2026 16:18
Copy link
Copy Markdown
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

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

well... that went better than expected 😅

@Lms24 Lms24 changed the title docs(js): add CDN tab to manual multiplexed transport examples docs(js): Add CDN tab to manual multiplexed transport examples Apr 14, 2026
@Lms24 Lms24 merged commit 61c8660 into master Apr 14, 2026
18 checks passed
@Lms24 Lms24 deleted the add-cdn-tab-manual-multiplexed branch April 14, 2026 16:34
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.

1 participant