You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
Copy file name to clipboardExpand all lines: docs/platforms/javascript/common/best-practices/micro-frontends.mdx
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -74,6 +74,10 @@ module.exports = {
74
74
};
75
75
```
76
76
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
+
77
81
Once metadata has been injected into modules, the `moduleMetadataIntegration`
78
82
can be used to look up that metadata and attach it to stack frames with
79
83
matching file names. This metadata is then available in the `beforeSend` callback
@@ -198,6 +202,10 @@ init({
198
202
</script>
199
203
```
200
204
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
+
201
209
Once this is set up, errors - both handled and unhandled - will be automatically routed to the right project.
202
210
203
211
<Alert>
@@ -243,6 +251,15 @@ init({
243
251
});
244
252
```
245
253
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
+
246
263
You can then set tags/contexts on events in individual micro-frontends to decide which Sentry project to send the event to as follows:
0 commit comments