Skip to content

fix(nextjs): Trace with performance disabled #9389

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

Merged
merged 3 commits into from
Oct 27, 2023
Merged

Conversation

lforst
Copy link
Contributor

@lforst lforst commented Oct 27, 2023

We guarded a lot of tracing functionality in Next.js behind hasTracingEnabled() which will prevent events from being traced when performance is disabled. This PR removes these checks, which were a relic of the past we missed when introducing "tracing without performance".

@lforst lforst requested review from mydea, Lms24 and AbhiPrasad October 27, 2023 11:07
Luca Forstner added 2 commits October 27, 2023 11:13
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.

oof, seems like we have this guard in a bunch of places, not just NextJS :/
even made it to Astro
good catch!

@lforst
Copy link
Contributor Author

lforst commented Oct 27, 2023

@Lms24 All the other places I've seen make sense because of tree shaking. It's just that we should get rid of all the serverside checks.

@lforst lforst merged commit 3379f93 into develop Oct 27, 2023
@lforst lforst deleted the lforst-nextjs-twp branch October 27, 2023 12:09
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.

2 participants