Skip to content

Commit 882b07f

Browse files
Lms24lizokm
andauthored
Apply suggestions from code review
Co-authored-by: Liza Mock <[email protected]>
1 parent fd86c26 commit 882b07f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,18 +195,14 @@ captureException(new Error("oh no!"), (scope) => {
195195
196196
## SDK Version Alignment
197197
198-
Since version 8 of the Sentry JavaScript SDKs, multiple SDKs on the same page will [only interact with each other](https://github.com/getsentry/sentry-javascript/pull/12206) if they're aligned to the same version.
199-
This was done with the objective to prevent cross-SDK interactions in unwanted scenarios, like browser extensions or 3rd party scripts using Sentry and
200-
interfering with SDKs on the same page.
198+
Starting with version 8, if you have multiple Sentry JavaScript SDKs on the same page, they will [only interact with each other](https://github.com/getsentry/sentry-javascript/pull/12206) if they're all using the same version. This prevents unwanted cross-SDK interactions, for example, from browser extensions or 3rd party scripts.
201199
202-
However, for micro frontends, where you specifically _want_ SDK interaction between multiple SDKs, you need to ensure that all SDKs are aligned to the same version.
200+
However, for micro frontends, where you _want_ SDK interaction between multiple SDKs, you'll need to ensure that all SDKs are using the same version.
203201
204-
An example where version alignment is important is when you initialize the SDK once in a host or skeleton application but use Sentry SDK calls in micro frontend child applications.
205-
For example, if your individual micro frontends call `Sentry.captureException`.
202+
Version alignment is important when you initialize the SDK in a host or skeleton application, but use Sentry SDK calls in micro frontend child applications. For example, if your individual micro frontends call `Sentry.captureException`.
206203
207204
<Note>
208205
209-
If you cannot guarantee version alignment, you can [follow this workaround](https://github.com/getsentry/sentry-javascript/discussions/10576#discussioncomment-11446422).
210-
In this case, we cannot guarantee perfect interoperability between SDKs, meaning you might run into unexpected behavior.
206+
If you can't get all your SDKs to use the same version, you can [follow this workaround](https://github.com/getsentry/sentry-javascript/discussions/10576#discussioncomment-11446422), but interoperability isn't guaranteed and you could run into some unexpected behavior.
211207
212208
</Note>

0 commit comments

Comments
 (0)