Skip to content

Not getting Server Spans in Vercel #15834

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

Closed
3 tasks done
landenai opened this issue Mar 26, 2025 · 2 comments
Closed
3 tasks done

Not getting Server Spans in Vercel #15834

landenai opened this issue Mar 26, 2025 · 2 comments

Comments

@landenai
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nextjs

SDK Version

8.37.1

Framework Version

Next 15.0.1

Link to Sentry event

No response

Reproduction Example/SDK Setup

We're using Sentry on both the client and server side of our Next.js Demo app. We have a products page that uses a server component to fetch product data from the db. We are hosting on Vercel. Note that the expected result is observed locally but not in Vercel

Steps to Reproduce

  1. Load product page
  2. Go to Pageload transaction in Sentry

Expected Result

The pageload transaction contains server spans including the DB operations

Actual Result

When first loading this page, the pageload transaction in Sentry has client spans only (incorrect). If you then refresh the page, the server spans are takend from the second pageload transaction and applied to the original. You can prove this by opening the pageload transaction after the first page load and observing only client spans. Then refresh the products page, wait a moment, and then refresh the original pageload transaction. You will now see the server spans as part of that transaction! Observe the new pageload transaction, and you will see only server spans.

@github-actions github-actions bot added the Package: nextjs Issues related to the Sentry Nextjs SDK label Mar 26, 2025
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Mar 27, 2025
@lforst
Copy link
Member

lforst commented Mar 27, 2025

Would you mind sharing a link to the event and maybe also pointing to code? Thanks!

@mydea
Copy link
Member

mydea commented May 7, 2025

Why was this issue closed?

This issue hasn't been touched recently and no longer seems relevant.
Hence, we're closing it to maintain a clean and transparent backlog.

Please feel free to leave a comment if you think this issue should be reopened.

@mydea mydea closed this as not planned Won't fix, can't repro, duplicate, stale May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

5 participants