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

Next.js requests to data fetchers are not traced #5643

Closed
lforst opened this issue Aug 29, 2022 · 2 comments
Closed

Next.js requests to data fetchers are not traced #5643

lforst opened this issue Aug 29, 2022 · 2 comments

Comments

@lforst
Copy link
Member

lforst commented Aug 29, 2022

We don't trace outgoing requests to data-fetchers when navigating: We monkeypatch Route.changeState by starting a transaction when it's called. This doesn't work because the requests to the data fetching endpoints (e.g. getServerSideProps) happen before Route.changeState is called. There are no active transaction when these requests happen so there are no traced requests.

@AbhiPrasad
Copy link
Member

Will this be closed by #5676?

@lforst
Copy link
Member Author

lforst commented Sep 19, 2022

Yes! To actually have traced data-fetchers experiments.autoWrapDataFetchers must be set in the sentry next config but this is practically resolved. Thanks for the reminder!

@lforst lforst closed this as completed Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants