Skip to content

fix: improve http.client double-wrap message#20705

Open
isaacs wants to merge 1 commit intodevelopfrom
isaacs/improve-http-client-otel-message
Open

fix: improve http.client double-wrap message#20705
isaacs wants to merge 1 commit intodevelopfrom
isaacs/improve-http-client-otel-message

Conversation

@isaacs
Copy link
Copy Markdown
Member

@isaacs isaacs commented May 6, 2026

Add a link to the docs.

Before submitting a pull request, please take a look at our
Contributing guidelines and verify:

  • If you've added code that should be tested, please add tests.
  • Ensure your code lints and the test suite passes (yarn lint) & (yarn test).
  • Link an issue if there is one related to your pull request. If no issue is linked, one will be auto-generated and linked.

Closes #issue_link_here

@isaacs isaacs force-pushed the isaacs/improve-http-client-otel-message branch from d048d95 to e10fcf3 Compare May 6, 2026 22:12
@isaacs isaacs enabled auto-merge (rebase) May 6, 2026 22:12
Copy link
Copy Markdown

@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 is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit e10fcf3. Configure here.

// exported for tess
export const warning =
'Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation.';
'Double-wrapped http.client detected. Either disable spans in Sentry.httpIntegration, or disable the OpenTelemetry HTTP instrumentation. See: https://docs.sentry.io/platforms/javascript/guides/express/opentelemetry/custom-setup/#custom-http-instrumentation';
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale TODO comment after adding documentation link

Low Severity

The // TODO: add link to documentation comment on line 18 is now outdated since this PR adds the documentation link to the warning string on line 10. Leaving a stale TODO can confuse future contributors into thinking the link still needs to be added.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit e10fcf3. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 6, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.3 kB - -
@sentry/browser - with treeshaking flags 24.78 kB - -
@sentry/browser (incl. Tracing) 44.17 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 46.39 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.14 kB - -
@sentry/browser (incl. Tracing, Replay) 83.63 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 73.08 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 88.32 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 100.93 kB - -
@sentry/browser (incl. Feedback) 43.44 kB - -
@sentry/browser (incl. sendFeedback) 31.11 kB - -
@sentry/browser (incl. FeedbackAsync) 36.19 kB - -
@sentry/browser (incl. Metrics) 27.6 kB - -
@sentry/browser (incl. Logs) 27.73 kB - -
@sentry/browser (incl. Metrics & Logs) 28.43 kB - -
@sentry/react 28.04 kB - -
@sentry/react (incl. Tracing) 46.4 kB - -
@sentry/vue 31.18 kB - -
@sentry/vue (incl. Tracing) 46.02 kB - -
@sentry/svelte 26.32 kB - -
CDN Bundle 28.91 kB - -
CDN Bundle (incl. Tracing) 46.94 kB - -
CDN Bundle (incl. Logs, Metrics) 30.34 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.04 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 69.46 kB - -
CDN Bundle (incl. Tracing, Replay) 84.13 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 85.2 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 89.94 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 91.02 kB - -
CDN Bundle - uncompressed 84.88 kB - -
CDN Bundle (incl. Tracing) - uncompressed 140.44 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 89.08 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 143.9 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 213.29 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 258.54 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 261.99 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 272.24 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 275.68 kB - -
@sentry/nextjs (client) 48.9 kB - -
@sentry/sveltekit (client) 44.64 kB - -
@sentry/node-core 60.13 kB +0.11% +63 B 🔺
@sentry/node 165.18 kB +0.05% +71 B 🔺
@sentry/node - without tracing 73.15 kB +0.11% +76 B 🔺
@sentry/aws-serverless 107.3 kB +0.07% +65 B 🔺
@sentry/cloudflare (withSentry) - minified 169.35 kB - -
@sentry/cloudflare (withSentry) 427.5 kB - -

View base workflow run

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