Skip to content

Reproduction for sentry-javascript#19815#32

Open
Lms24 wants to merge 1 commit intomainfrom
repro/sentry-javascript-19815
Open

Reproduction for sentry-javascript#19815#32
Lms24 wants to merge 1 commit intomainfrom
repro/sentry-javascript-19815

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 16, 2026

Summary

Reproduction for getsentry/sentry-javascript#19815.

When tracing is disabled (no tracesSampleRate set), all errors from different Express requests share the same traceId. Without an active span per request, the SDK never creates a fresh propagation context for each incoming request, so every event ends up on the same static trace.

How to run

cd sentry-javascript/19815
npm install
bash test.sh

You'll see all 5 requests produce the same traceId:

[request #1] propagation traceId: e551c9b4398346c88486608a44c0a2a2
[request #2] propagation traceId: e551c9b4398346c88486608a44c0a2a2
[request #3] propagation traceId: e551c9b4398346c88486608a44c0a2a2
[request #4] propagation traceId: e551c9b4398346c88486608a44c0a2a2
[request #5] propagation traceId: e551c9b4398346c88486608a44c0a2a2

Environment

  • Node.js: v22.15.0
  • @sentry/node: 10.43.0
  • express: ^5.2.1

Made with Cursor

Demonstrates that when tracing is disabled (no tracesSampleRate), all
errors from different Express requests share the same traceId instead
of each getting a unique one.

Made-with: Cursor
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.

1 participant