You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enable tracePropagationTargets and configure it to point to your backend server.
Make HTTP requests using fetch inside middleware or during SSG generation in a Next.js project.
When performing an HTTP request, Sentry will add the Baggage and Sentry-Trace headers to the outgoing requests.
These headers will be received by the backend (using sentry-go).
The Sentry-Trace header will contain two trace IDs, for example: 0b7da23d63cc4a7d9436abf37ace0e0c-9510fafae5f1c2c5-1,faca5d26f53d660657d9e4b073fb8da2-74dbb120f6aca02a-1
Due to the presence of two trace IDs, the backend cannot correctly parse the Parent Span ID, leading to incorrect transaction linking.
Expected Result
The Sentry-Trace header should contain only a single trace ID.
Actual Result
The Sentry-Trace header contains multiple trace IDs.
The text was updated successfully, but these errors were encountered:
@hiroshinishio, You have 5 requests left in this cycle which refreshes on 2024-11-04 02:56:25+00:00.
If you have any questions or concerns, please contact us at [email protected].
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.33.1
Framework Version
Next 14.2.14
Link to Sentry event
https://paprikavpn.sentry.io/performance/trace/0b7da23d63cc4a7d9436abf37ace0e0c
Reproduction Example/SDK Setup
Dependencies
sentry.client.config.ts
instrumentation.ts
Steps to Reproduce
tracePropagationTargets
and configure it to point to your backend server.fetch
inside middleware or during SSG generation in a Next.js project.Baggage
andSentry-Trace
headers to the outgoing requests.Sentry-Trace
header will contain two trace IDs, for example:0b7da23d63cc4a7d9436abf37ace0e0c-9510fafae5f1c2c5-1,faca5d26f53d660657d9e4b073fb8da2-74dbb120f6aca02a-1
Expected Result
The
Sentry-Trace
header should contain only a single trace ID.Actual Result
The
Sentry-Trace
header contains multiple trace IDs.The text was updated successfully, but these errors were encountered: