Skip to content

Commit 5c6ed97

Browse files
KyleTryoncursoragent
authored andcommitted
Clarify placeholder value instructions (#14034)
In `docs/platforms/javascript/common/best-practices/micro-frontends.mdx`, `<Alert>` components were added to clarify placeholder DSN values. * An alert was inserted after the webpack config example, instructing users to replace `__MODULE_DSN__`. * Another alert was added after the automatic routing examples, specifying that `__DEFAULT_DSN__` should be replaced with the default/fallback DSN. * A comprehensive alert was placed after the manual routing example, detailing the replacement of `__FALLBACK_DSN__`, `__CART_DSN__`, and `__GALLERY_DSN__`. The alerts explicitly state that these are placeholder DSNs and provide instructions on locating actual DSNs within the Sentry project settings (Client Keys). This change ensures users clearly understand that the provided DSNs are not functional and must be customized, improving the clarity and usability of the documentation. Co-authored-by: Cursor Agent <cursoragent@cursor.com>
1 parent 323208a commit 5c6ed97

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/platforms/javascript/common/best-practices/micro-frontends.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ module.exports = {
7474
};
7575
```
7676

77+
<Alert>
78+
**Replace `__MODULE_DSN__` with your actual Sentry project DSN.** You can find your DSN in your Sentry project settings under Client Keys (DSN).
79+
</Alert>
80+
7781
Once metadata has been injected into modules, the `moduleMetadataIntegration`
7882
can be used to look up that metadata and attach it to stack frames with
7983
matching file names. This metadata is then available in the `beforeSend` callback
@@ -198,6 +202,10 @@ init({
198202
</script>
199203
```
200204
205+
<Alert>
206+
**Replace `__DEFAULT_DSN__` with your actual Sentry project DSN.** This should be the DSN for your default/fallback Sentry project. You can find your DSN in your Sentry project settings under Client Keys (DSN).
207+
</Alert>
208+
201209
Once this is set up, errors - both handled and unhandled - will be automatically routed to the right project.
202210
203211
<Alert>
@@ -243,6 +251,15 @@ init({
243251
});
244252
```
245253
254+
<Alert>
255+
**Replace the placeholder DSN values with your actual Sentry project DSNs:**
256+
- Replace `__FALLBACK_DSN__` with the DSN for your fallback/default Sentry project
257+
- Replace `__CART_DSN__` with the DSN for your cart micro frontend's Sentry project
258+
- Replace `__GALLERY_DSN__` with the DSN for your gallery micro frontend's Sentry project
259+
260+
You can find your DSNs in each Sentry project's settings under Client Keys (DSN).
261+
</Alert>
262+
246263
You can then set tags/contexts on events in individual micro-frontends to decide which Sentry project to send the event to as follows:
247264
248265
<Alert>

0 commit comments

Comments
 (0)