Skip to content

Reproduction for sentry-javascript#19013#8

Open
Lms24 wants to merge 2 commits intomainfrom
repro/sentry-javascript-19013
Open

Reproduction for sentry-javascript#19013#8
Lms24 wants to merge 2 commits intomainfrom
repro/sentry-javascript-19013

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Jan 28, 2026

Summary

Reproduction for getsentry/sentry-javascript#19013

This reproduces the scope isolation issue when using @sentry/bun with Express:

  • Incoming HTTP requests don't get properly scoped
  • No trace IDs are generated for Express request handlers
  • Multiple requests share the same (absent) trace context instead of each having unique trace IDs

How to run

cd sentry-javascript/19013
bun install
bun run start
# In another terminal:
bun run test

Observed behavior

=== Results ===

Request 1: endpoint1 -> Trace ID: NO TRACE ID
Request 2: endpoint2 -> Trace ID: NO TRACE ID
...

=== Summary ===

Total requests: 6
Unique trace IDs: 0

❌ BUG: No trace IDs were generated at all

Expected behavior

Each incoming HTTP request should have its own unique trace ID, with automatic instrumentation creating new root spans for each request.

Reproduces the scope isolation issue when using @sentry/bun with Express.
Incoming HTTP requests don't get properly scoped - no trace IDs are generated
for Express request handlers.
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

@@ -0,0 +1 @@
../acorn/bin/acorn No newline at end of file
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node_modules directory accidentally committed to repository

Medium Severity

The node_modules directory has been committed to the repository. This significantly bloats the repository with dependency files that can be regenerated from bun.lock. The lock file already captures exact dependency versions, making committed node_modules unnecessary for reproduction purposes.

Additional Locations (1)

Fix in Cursor Fix in Web

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