Skip to content

feat(nitro): Instrument HTTP Server#19225

Draft
logaretm wants to merge 9 commits intoawad/create-nitro-sdk-metadatafrom
awad/js-1128-nitro-use-tracing-channels-for-srvx-and-h3
Draft

feat(nitro): Instrument HTTP Server#19225
logaretm wants to merge 9 commits intoawad/create-nitro-sdk-metadatafrom
awad/js-1128-nitro-use-tracing-channels-for-srvx-and-h3

Conversation

@logaretm
Copy link
Member

@logaretm logaretm commented Feb 6, 2026

Implements HTTP server instrumentation for both h3 and srvx by listening to their tracing channel events.

⚠️ Note that both of these channels were renamed here and here, so we will hold off until those are out with Nitro's next version.

Closes #18123


This PR is part of a stack:

@linear
Copy link

linear bot commented Feb 6, 2026

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

Codecov Results 📊


Generated by Codecov Action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

Codecov Results 📊

25 passed | ⏭️ 5 skipped | Total: 30 | Pass Rate: 83.33% | Execution Time: 13.58s

All tests are passing successfully.


Generated by Codecov Action

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 25.54 kB added added
@sentry/browser - with treeshaking flags 24 kB added added
@sentry/browser (incl. Tracing) 42.37 kB added added
@sentry/browser (incl. Tracing, Profiling) 47.02 kB added added
@sentry/browser (incl. Tracing, Replay) 81.01 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 70.61 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 85.71 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 97.89 kB added added
@sentry/browser (incl. Feedback) 42.26 kB added added
@sentry/browser (incl. sendFeedback) 30.22 kB added added
@sentry/browser (incl. FeedbackAsync) 35.23 kB added added
@sentry/browser (incl. Metrics) 26.65 kB added added
@sentry/browser (incl. Logs) 26.79 kB added added
@sentry/browser (incl. Metrics & Logs) 27.47 kB added added
@sentry/react 27.25 kB added added
@sentry/react (incl. Tracing) 44.63 kB added added
@sentry/vue 29.98 kB added added
@sentry/vue (incl. Tracing) 44.21 kB added added
@sentry/svelte 25.55 kB added added
CDN Bundle 28.08 kB added added
CDN Bundle (incl. Tracing) 43.15 kB added added
CDN Bundle (incl. Logs, Metrics) 28.92 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 43.99 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 67.86 kB added added
CDN Bundle (incl. Tracing, Replay) 79.91 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 80.77 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 85.33 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.23 kB added added
CDN Bundle - uncompressed 82.12 kB added added
CDN Bundle (incl. Tracing) - uncompressed 127.83 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 84.95 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 130.66 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 208.33 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 244.43 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 247.25 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 257.23 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 260.04 kB added added
@sentry/nextjs (client) 46.97 kB added added
@sentry/sveltekit (client) 42.77 kB added added
@sentry/node-core 52.18 kB added added
@sentry/node 166.3 kB added added
@sentry/node - without tracing 93.97 kB added added
@sentry/aws-serverless 109.48 kB added added

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 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 9,260 - - added
GET With Sentry 1,725 19% - added
GET With Sentry (error only) 6,187 67% - added
POST Baseline 1,202 - - added
POST With Sentry 616 51% - added
POST With Sentry (error only) 1,072 89% - added
MYSQL Baseline 3,392 - - added
MYSQL With Sentry 499 15% - added
MYSQL With Sentry (error only) 2,728 80% - added

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