Skip to content

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 AbhiPrasad, Lms24 and mydea 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