Commit 61c8660
docs(js): Add CDN tab to manual multiplexed transport examples (#17334)
## Summary
Adds CDN/Loader Bundle code tabs to the **Manually Route Errors to
Different Projects** section of the [micro-frontends best practices
page](https://docs.sentry.io/platforms/javascript/best-practices/micro-frontends/).
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.
Co-authored-by: Junior <junior@sentry.io>1 parent 6354b55 commit 61c8660
File tree
1 file changed
+68
-2
lines changed- docs/platforms/javascript/common/best-practices
1 file changed
+68
-2
lines changedLines changed: 68 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
253 | 284 | | |
254 | 285 | | |
255 | 286 | | |
256 | 287 | | |
257 | 288 | | |
258 | 289 | | |
259 | | - | |
| 290 | + | |
260 | 291 | | |
261 | 292 | | |
262 | 293 | | |
| |||
281 | 312 | | |
282 | 313 | | |
283 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
284 | 350 | | |
285 | 351 | | |
286 | 352 | | |
| |||
0 commit comments