Skip to content

Sentry creates separate otel context for dynamic pages when using @vercel/otel #12907

Closed
@adam187

Description

@adam187

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.17.0

Framework Version

next latest

Link to Sentry event

No response

SDK Setup/Reproduction Example

https://github.com/adam187/nextjs-sentry-otel-example

Steps to Reproduce

  1. yarn install
  2. yarn build
  3. yarn start
  4. curl 'http://localhost:3000'

Expected Result

All otel spans should have same trace id for single request.

Actual Result

Sentry creates own isolated scope that cause having spans from single splitted into two separate traces.

image

This is problematic since you can't view full trace for a single request.

Metadata

Metadata

Labels

Package: nextjsIssues related to the Sentry Nextjs SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions