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
We are using Sentry major 7 on a micro-frontend environment. We load Sentry using Loader script.
We want to be able to use Sentry's SDK method of startSpan/startSpanManual in order to report interesting transactions and monitor them via Sentry.
According to the docs, this requires loading the specific bundle of tracing, e.g. https://browser.sentry-cdn.com/7.120.3/bundle.tracing.min.js as described here.
Our problem with this requirement is that we would still want to load Sentry lazily, as if I'm using error-only features. Only if there is a use of startSpan or startSpanManual for example, the Sentry bundle would fully load.
We want to monitoring only the transactions reported via startSpan/startSpanManual.
Is there a way to achieve that and workaround the current limitation?
Thank you very much!
Solution Brainstorm
We are thinking about loading the non-tracing bundle and maybe load BrowserTracing integration bundle separately. Not sure If this is going to work (I can create a PR to add a bundle of this integration, as I previously did for ModuleMetadatahere and here).
Would love your feedback regarding the possibility of this.
The text was updated successfully, but these errors were encountered:
We discussed this internally and thought of ways to achieve this. For now, if it's feasible, you could try to
continue using the loader and
add your own bundle that exports startSpan APIs like an addon bundle.
Alternatively, you could build your own index.bundle.js and build the bundle yourself with all the exports you want although that would mean you can't use the loader anymore.
Getting changes like these into v7 might be difficult tho.
Problem Statement
We are using Sentry major 7 on a micro-frontend environment. We load Sentry using Loader script.
We want to be able to use Sentry's SDK method of
startSpan
/startSpanManual
in order to report interesting transactions and monitor them via Sentry.According to the docs, this requires loading the specific bundle of tracing, e.g.
https://browser.sentry-cdn.com/7.120.3/bundle.tracing.min.js
as described here.Our problem with this requirement is that we would still want to load Sentry lazily, as if I'm using error-only features. Only if there is a use of
startSpan
orstartSpanManual
for example, the Sentry bundle would fully load.We want to monitoring only the transactions reported via
startSpan
/startSpanManual
.Is there a way to achieve that and workaround the current limitation?
Thank you very much!
Solution Brainstorm
We are thinking about loading the non-tracing bundle and maybe load
BrowserTracing
integration bundle separately. Not sure If this is going to work (I can create a PR to add a bundle of this integration, as I previously did forModuleMetadata
here and here).Would love your feedback regarding the possibility of this.
The text was updated successfully, but these errors were encountered: