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

fix(angular): Run tracing calls outside of Angular #11748

Merged
merged 1 commit into from May 3, 2024

Conversation

arturovt
Copy link
Contributor

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.

@mydea mydea requested a review from Lms24 April 23, 2024 13:46
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @arturovt thanks for opening all these Angular PRs, great to see the Angular SDK getting some love from the community :D

This change sounds reasonable to me - let me know when it is ready for a review!

(heads-up: CI seems to have detected a formatting issue. I suggest running yarn fix:biome to resolve it)

@arturovt
Copy link
Contributor Author

Yeah, I was waiting for other PR to be merged.

(could never thought it's called biome 😂 )

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.
@arturovt arturovt marked this pull request as ready for review April 25, 2024 09:35
@Lms24
Copy link
Member

Lms24 commented Apr 25, 2024

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) 😅

@Lms24
Copy link
Member

Lms24 commented Apr 25, 2024

heads-up: I re-created your PR (#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.

Copy link
Member

@AbhiPrasad AbhiPrasad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to test for this so we don't regress in the future, but I guess we just be careful with PR reviews!

@Lms24 Lms24 merged commit 6f44e8a into getsentry:develop May 3, 2024
34 checks passed
@Lms24 Lms24 changed the title fix(angular): run tracing stuff outside Angular fix(angular): Run tracing calls outside of Angular May 3, 2024
@arturovt arturovt deleted the fix/tracing-stable branch May 3, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants