fix(angular): run tracing stuff outside Angular
This commit updates all tracing functionality to run outside the Angular zone. Before this change, it hindered server-side rendering and hydration, causing instability in the app. The app achieves stability when there are no micro/macro tasks running. As a result, the HTML can now be serialized and sent to the client.
Yeah, I was waiting for other PR to be merged.
(could never thought it's called biome :joy: )
could never thought it's called biome 😂
yeah, it's because we use biome instead of prettier (for now; we'll probably revert in a couple of weeks) 😅
heads-up: I re-created your PR (https://github.com/getsentry/sentry-javascript/pull/11794) just to run our e2e test for Angular. Unfortunately our e2e tests don't run on external contributor PRs. Once the test passes, I'll merge your PR.