Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect Micro-Frontends presence in JS apps #8746

Open
smeubank opened this issue Aug 7, 2023 · 1 comment
Open

Detect Micro-Frontends presence in JS apps #8746

smeubank opened this issue Aug 7, 2023 · 1 comment

Comments

@smeubank
Copy link
Member

smeubank commented Aug 7, 2023

Problem Statement

Microfrontends are a bit a buzz terms, but there are more concrete definitions of microfrontends which have developed. Specifically with module federations, popularly used with webpack. Today we have no way of detecting if an event is generated from app which is built with/as a "MFE" architecture. And further then the SDK cannot react dynamically during run or build time. Nor could Sentry server side easily detect that event and user might benefit from a different setup.

Solution Brainstorm

Detect if the event is generated in a MFE architecture and if possible what "flavor"

Context should be added to events, which is populated with information about the architecture of the JS application.

@AbhiPrasad
Copy link
Member

AbhiPrasad commented Aug 7, 2023

This is how wappalyzer does it: https://github.com/wappalyzer/wappalyzer/blob/master/src/technologies/m.json#L2370-L2384

They look at injected scripts though, which is hard for the SDK to do. We should figure out if there is a global variable we can look for and see.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants