Skip to content

test(node,node-core): Add span streaming integration tests#19806

Merged
Lms24 merged 8 commits intolms/feat-span-firstfrom
lms/test-node-core-span-integration-tests
Mar 18, 2026
Merged

test(node,node-core): Add span streaming integration tests#19806
Lms24 merged 8 commits intolms/feat-span-firstfrom
lms/test-node-core-span-integration-tests

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 13, 2026

Extends our Node (core) integration test runner API to expect span envelopes with both an API to test against span envelope headers as well as the container. In addition, this adds a couple of integration tests testing manually started spans, span name updates and span relationships. Luckily, all of the span relationship logic is independent from span streaming so the tests all pass. I still believe it's valuable to have a span version of them.

@Lms24 Lms24 changed the base branch from develop to lms/feat-span-first March 13, 2026 15:37
@Lms24 Lms24 marked this pull request as ready for review March 13, 2026 15:39
@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.72 kB added added
@sentry/browser - with treeshaking flags 24.22 kB added added
@sentry/browser (incl. Tracing) 42.99 kB added added
@sentry/browser (incl. Tracing, Profiling) 47.66 kB added added
@sentry/browser (incl. Tracing, Replay) 81.79 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 71.35 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 86.48 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 98.72 kB added added
@sentry/browser (incl. Feedback) 42.52 kB added added
@sentry/browser (incl. sendFeedback) 30.39 kB added added
@sentry/browser (incl. FeedbackAsync) 35.44 kB added added
@sentry/browser (incl. Metrics) 27 kB added added
@sentry/browser (incl. Logs) 27.15 kB added added
@sentry/browser (incl. Metrics & Logs) 27.81 kB added added
@sentry/react 27.48 kB added added
@sentry/react (incl. Tracing) 45.32 kB added added
@sentry/vue 30.37 kB added added
@sentry/vue (incl. Tracing) 44.85 kB added added
@sentry/svelte 25.75 kB added added
CDN Bundle 28.35 kB added added
CDN Bundle (incl. Tracing) 43.89 kB added added
CDN Bundle (incl. Logs, Metrics) 29.21 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 44.75 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 68.29 kB added added
CDN Bundle (incl. Tracing, Replay) 80.68 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81.61 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 86.24 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 87.12 kB added added
CDN Bundle - uncompressed 82.76 kB added added
CDN Bundle (incl. Tracing) - uncompressed 129.55 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 85.63 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 132.42 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 209.26 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 246.4 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 249.25 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 259.31 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 262.16 kB added added
@sentry/nextjs (client) 47.74 kB added added
@sentry/sveltekit (client) 43.44 kB added added
@sentry/node-core 58.27 kB added added
@sentry/node 175.16 kB added added
@sentry/node - without tracing 98.19 kB added added
@sentry/aws-serverless 115.29 kB added added

@github-actions
Copy link
Contributor

github-actions bot commented Mar 17, 2026

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 8,718 - - added
GET With Sentry 1,605 18% - added
GET With Sentry (error only) 6,173 71% - added
POST Baseline 1,196 - - added
POST With Sentry 585 49% - added
POST With Sentry (error only) 1,050 88% - added
MYSQL Baseline 3,189 - - added
MYSQL With Sentry 429 13% - added
MYSQL With Sentry (error only) 2,584 81% - added

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.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@Lms24 Lms24 self-assigned this Mar 18, 2026
@Lms24 Lms24 merged commit 8bf8eaf into lms/feat-span-first Mar 18, 2026
658 of 662 checks passed
@Lms24 Lms24 deleted the lms/test-node-core-span-integration-tests branch March 18, 2026 16:35
Lms24 added a commit that referenced this pull request Mar 18, 2026
Extends our Node (core) integration test runner API to expect `span`
envelopes with both an API to test against span envelope headers as well
as the container. In addition, this adds a couple of integration tests
testing manually started spans, span name updates and span
relationships. Luckily, all of the span relationship logic is
independent from span streaming so the tests all pass. I still believe
it's valuable to have a `span` version of them.
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