Skip to content

feat(deno): Set http response header attributes instead of response context headers#19822

Merged
Lms24 merged 7 commits intodevelopfrom
lms/feat-deno-http-response-headers
Mar 17, 2026
Merged

feat(deno): Set http response header attributes instead of response context headers#19822
Lms24 merged 7 commits intodevelopfrom
lms/feat-deno-http-response-headers

Conversation

@Lms24
Copy link
Member

@Lms24 Lms24 commented Mar 16, 2026

same as #19821 but for deno server instrumentation. To be merged after #19821

ref #19790

@Lms24 Lms24 changed the base branch from develop to lms/feat-bun-http-response-headers March 16, 2026 13:56
@github-actions
Copy link
Contributor

github-actions bot commented Mar 16, 2026

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 25.64 kB - -
@sentry/browser - with treeshaking flags 24.14 kB - -
@sentry/browser (incl. Tracing) 42.62 kB - -
@sentry/browser (incl. Tracing, Profiling) 47.28 kB - -
@sentry/browser (incl. Tracing, Replay) 81.42 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 71 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 86.12 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 98.37 kB - -
@sentry/browser (incl. Feedback) 42.45 kB - -
@sentry/browser (incl. sendFeedback) 30.31 kB - -
@sentry/browser (incl. FeedbackAsync) 35.36 kB - -
@sentry/browser (incl. Metrics) 26.92 kB - -
@sentry/browser (incl. Logs) 27.07 kB - -
@sentry/browser (incl. Metrics & Logs) 27.74 kB - -
@sentry/react 27.39 kB - -
@sentry/react (incl. Tracing) 44.95 kB - -
@sentry/vue 30.08 kB - -
@sentry/vue (incl. Tracing) 44.48 kB - -
@sentry/svelte 25.66 kB - -
CDN Bundle 28.28 kB +0.04% +11 B 🔺
CDN Bundle (incl. Tracing) 43.51 kB +0.03% +10 B 🔺
CDN Bundle (incl. Logs, Metrics) 29.14 kB +0.05% +12 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) 44.36 kB +0.03% +11 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) 68.21 kB +0.02% +12 B 🔺
CDN Bundle (incl. Tracing, Replay) 80.33 kB +0.02% +13 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 81.23 kB +0.02% +13 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) 85.87 kB +0.02% +12 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 86.77 kB +0.02% +12 B 🔺
CDN Bundle - uncompressed 82.62 kB +0.08% +59 B 🔺
CDN Bundle (incl. Tracing) - uncompressed 128.56 kB +0.05% +59 B 🔺
CDN Bundle (incl. Logs, Metrics) - uncompressed 85.49 kB +0.07% +59 B 🔺
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 131.43 kB +0.05% +59 B 🔺
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 209.12 kB +0.03% +59 B 🔺
CDN Bundle (incl. Tracing, Replay) - uncompressed 245.41 kB +0.03% +59 B 🔺
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 248.26 kB +0.03% +59 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 258.32 kB +0.03% +59 B 🔺
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 261.17 kB +0.03% +59 B 🔺
@sentry/nextjs (client) 47.37 kB - -
@sentry/sveltekit (client) 43.07 kB - -
@sentry/node-core 56.35 kB +0.05% +28 B 🔺
@sentry/node 173.17 kB -0.01% -17 B 🔽
@sentry/node - without tracing 96.35 kB +0.01% +5 B 🔺
@sentry/aws-serverless 113.35 kB +0.01% +11 B 🔺

View base workflow run

@github-actions
Copy link
Contributor

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,688 - - added
GET With Sentry 1,620 19% - added
GET With Sentry (error only) 6,117 70% - added
POST Baseline 1,189 - - added
POST With Sentry 566 48% - added
POST With Sentry (error only) 1,057 89% - added
MYSQL Baseline 3,196 - - added
MYSQL With Sentry 484 15% - added
MYSQL With Sentry (error only) 2,629 82% - added

@Lms24 Lms24 force-pushed the lms/feat-deno-http-response-headers branch from 55ae96e to 73b8f35 Compare March 16, 2026 14:30
@Lms24 Lms24 marked this pull request as ready for review March 16, 2026 14:52
@Lms24 Lms24 self-assigned this Mar 16, 2026
@Lms24 Lms24 requested review from isaacs and s1gr1d March 16, 2026 14:53
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.

Fix All in Cursor

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Inconsistent sendDefaultPii handling misses nullish coalescing
    • Replaced client.getOptions().sendDefaultPii with the already-resolved sendDefaultPii local variable for consistency and proper nullish coalescing.

Create PR

Or push these changes by commenting:

@cursor push b0be4199ba
Preview (b0be4199ba)
diff --git a/packages/deno/src/wrap-deno-request-handler.ts b/packages/deno/src/wrap-deno-request-handler.ts
--- a/packages/deno/src/wrap-deno-request-handler.ts
+++ b/packages/deno/src/wrap-deno-request-handler.ts
@@ -98,11 +98,7 @@
               status_code: res.status,
             });
             span.setAttributes(
-              httpHeadersToSpanAttributes(
-                Object.fromEntries(res.headers),
-                client.getOptions().sendDefaultPii,
-                'response',
-              ),
+              httpHeadersToSpanAttributes(Object.fromEntries(res.headers), sendDefaultPii, 'response'),
             );
           } catch (e) {
             span.end();

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

Base automatically changed from lms/feat-bun-http-response-headers to develop March 17, 2026 12:47
@Lms24 Lms24 merged commit e2ee8ba into develop Mar 17, 2026
38 checks passed
@Lms24 Lms24 deleted the lms/feat-deno-http-response-headers branch March 17, 2026 13:16
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.

2 participants