Skip to content

fix(nestjs): trace WebSocket interceptor contexts - #24862

Open
faizansaiyed123 wants to merge 1 commit into
getsentry:developfrom
faizansaiyed123:fix/nestjs-websocket-tracing-interceptor
Open

faizansaiyed123 wants to merge 1 commit into
getsentry:developfrom
faizansaiyed123:fix/nestjs-websocket-tracing-interceptor

Conversation

@faizansaiyed123

Copy link
Copy Markdown
Contributor

Extends the existing NestJS tracing interceptor to name WebSocket transactions from the WebSocket pattern, including the Socket.IO namespace when available. Non-Socket.IO adapters fall back to the pattern alone, and contexts without a pattern keep the existing pass-through behavior.

Regression tests cover Socket.IO namespaces, namespace-less adapters, and missing patterns.

Fixes #13810

@faizansaiyed123
faizansaiyed123 requested a review from a team as a code owner September 30, 2026 07:21
@faizansaiyed123
faizansaiyed123 requested review from nicohrubec and s1gr1d and removed request for a team September 30, 2026 07:21
@github-actions github-actions Bot added the external PR from an external contributor label Sep 30, 2026
Comment thread packages/nestjs/src/setup.ts Outdated

@cursor cursor Bot left a comment •

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 Bugbot comment from a previous run.

Comment thread packages/nestjs/src/setup.ts Outdated
@faizansaiyed123
faizansaiyed123 force-pushed the fix/nestjs-websocket-tracing-interceptor branch from d2bd884 to 4bca084 Compare September 30, 2026 07:30

@cursor cursor Bot left a comment •

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 Bugbot comment from a previous run.

Comment thread packages/nestjs/src/setup.ts Outdated
@faizansaiyed123
faizansaiyed123 force-pushed the fix/nestjs-websocket-tracing-interceptor branch from 4bca084 to 89f0658 Compare September 30, 2026 07:41

@cursor cursor Bot left a comment •

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 Bugbot comment from a previous run.

Comment thread packages/nestjs/src/setup.ts Outdated
@faizansaiyed123
faizansaiyed123 force-pushed the fix/nestjs-websocket-tracing-interceptor branch 2 times, most recently from b5cdddd to ef6a094 Compare September 30, 2026 07:57
@github-actions

github-actions Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

👋 @nicohrubec, @s1gr1d — Please review this PR when you get a chance!

@faizansaiyed123
faizansaiyed123 requested review from a team as code owners October 6, 2026 06:34
@faizansaiyed123
faizansaiyed123 requested review from Lms24, andreiborza and mydea and removed request for a team October 6, 2026 06:34
Comment thread packages/nestjs/src/setup.ts Outdated

@cursor cursor Bot left a comment

Copy link
Copy Markdown

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.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 16ee4bc. Configure here.

Comment thread packages/nestjs/src/setup.ts

@Lms24 Lms24 left a comment

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.

Hey @faizansaiyed123 thanks for opening a PR!
This PR currently has a massive amount of changes. I think it may need a rebase so that we can see what the intended changes are here.

@faizansaiyed123

Copy link
Copy Markdown
Contributor Author

@Lms24 Thanks for the review! Agreed — the branch history has accumulated a large number of upstream commits, which makes the PR difficult to review.

I’ll rebase the branch onto the latest develop and keep only the intended NestJS WebSocket tracing changes.

@faizansaiyed123
faizansaiyed123 force-pushed the fix/nestjs-websocket-tracing-interceptor branch from 629eec6 to d073e4e Compare October 6, 2026 11:29
@faizansaiyed123
faizansaiyed123 force-pushed the fix/nestjs-websocket-tracing-interceptor branch from 6a59f5c to 5353fe6 Compare October 6, 2026 11:31
@faizansaiyed123
faizansaiyed123 requested a review from Lms24 October 6, 2026 13:46
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

👋 @nicohrubec, @s1gr1d — Please review this PR when you get a chance!

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

👋 @mydea, @Lms24, @andreiborza — Please review this PR when you get a chance!

@github-actions

Copy link
Copy Markdown
Contributor

👋 @nicohrubec, @s1gr1d — Please review this PR when you get a chance!

@github-actions

Copy link
Copy Markdown
Contributor

👋 @mydea, @Lms24, @andreiborza — Please review this PR when you get a chance!

@github-actions

Copy link
Copy Markdown
Contributor

👋 @nicohrubec, @s1gr1d — Please review this PR when you get a chance!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

external PR from an external contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expand SentryTracingInterceptor to ws context

2 participants