getsentry / sentry-docs

Sentry's documentation (and tools to build it)
https://docs.sentry.io
Other
336 stars 1.48k forks source link

Further Clarification on Micro Frontend Documentation #11160

Open kpujjigit opened 3 months ago

kpujjigit commented 3 months ago

Core or SDK?

Platform/SDK

Which part? Which one?

Micro Frontend Support

Description

Feedback received via client regarding Micro Frontend Support:

"we're trying to implement the "Automatically Route Errors to Different Projects Depending on Module" approach (https://docs.sentry.io/platforms/javascript/best-practices/micro-frontends/), and we're having trouble following the documentation.

It looks to me like the first codeblock goes in the microfrontend, and the second codeblock goes in the host application (though that isn't entirely clear).

Further, i don't understand where the release would be coming from in the first codeblock, so we assume that is a mistake, and we're actually meant to set it manually from an environment variable in this function."

Suggested Solution

  1. Deeper dive into what code snippets go where.
  2. Specify how Release comes into play - there is no explicit instruction on how to bind release between modules.
getsantry[bot] commented 3 months ago

Assigning to @getsentry/support for routing ⏲️

mydea commented 2 months ago

Hey, thank you for raising this! We'll try to clarify this better.