Skip to content

feat(deno): instrument node:http on versions that support it#21009

Merged
isaacs merged 1 commit into
developfrom
isaacs/deno-node-http-integration
May 20, 2026
Merged

feat(deno): instrument node:http on versions that support it#21009
isaacs merged 1 commit into
developfrom
isaacs/deno-node-http-integration

Conversation

@isaacs
Copy link
Copy Markdown
Member

@isaacs isaacs commented May 19, 2026

This adds a default integration for the node:http module's diagnostics channels, on Deno versions that support it. Client is enabled in 2.7.13+, Server is instrumented in 2.8.0+. If either is available, the instrumentation is added by default. If neither is available, then the instrumentation no-ops and warns about being pointless.

Test verifies that the current Deno version is handled correctly.

close: JS-2031
close: #20059

@isaacs isaacs requested a review from a team as a code owner May 19, 2026 15:15
@linear-code
Copy link
Copy Markdown

linear-code Bot commented May 19, 2026

JS-2031

Comment thread packages/deno/test/deno-http.test.ts
Comment thread packages/deno/test/deno-http.test.ts Outdated
@isaacs isaacs force-pushed the isaacs/deno-node-http-integration branch 2 times, most recently from 83977fa to e65ba1b Compare May 19, 2026 15:32
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 e65ba1b. Configure here.

Comment thread packages/deno/src/sdk.ts Outdated
Comment thread packages/deno/src/sdk.ts Outdated
@isaacs isaacs force-pushed the isaacs/deno-node-http-integration branch 2 times, most recently from 5470f02 to 0bf6036 Compare May 19, 2026 18:48
@isaacs isaacs enabled auto-merge (squash) May 19, 2026 19:51
This adds a default integration for the `node:http` module's diagnostics
channels, on Deno versions that support it. Client is enabled in
2.7.13+, Server is instrumented in 2.8.0+. If either is available, the
instrumentation is added by default. If neither is available, then the
instrumentation no-ops and warns about being pointless.

Test verifies that the current Deno version is handled correctly.

close: JS-2031
close: #20059
@isaacs isaacs force-pushed the isaacs/deno-node-http-integration branch from 0bf6036 to ae650f0 Compare May 19, 2026 19:52
Copy link
Copy Markdown
Member

@JPeer264 JPeer264 left a comment

Choose a reason for hiding this comment

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

LGTM. Nice that finally the pieces can be put together


const INTEGRATION_NAME = 'DenoHttp';

export interface DenoHttpIntegrationOptions {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

super-l: You think it might make sense to also consolidate these types?

@isaacs isaacs merged commit fb4dd7a into develop May 20, 2026
44 checks passed
@isaacs isaacs deleted the isaacs/deno-node-http-integration branch May 20, 2026 05:17
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.

deno node:http integration

2 participants