Skip to content

Commit 00febbe

Browse files
authored
Update micro-frontend-support.mdx (#8515)
1 parent 0b067e3 commit 00febbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/platforms/javascript/common/configuration/micro-frontend-support.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ init({
221221
// Find the last frame with module metadata containing a DSN
222222
const routeTo = frames
223223
.filter((frame) => frame.module_metadata && frame.module_metadata.dsn)
224-
.map((v) => v.module_metadata);
224+
.map((v) => v.module_metadata)
225+
.slice(-1); // using top frame only - you may want to customize this according to your needs
225226

226227
if (routeTo.length) {
227228
event.extra = {

0 commit comments

Comments
 (0)