Repository navigation
fix(nestjs): trace WebSocket interceptor contexts - #24862
faizansaiyed123 wants to merge 20 commits into
Conversation
d2bd884 to
4bca084
Compare
4bca084 to
89f0658
Compare
b5cdddd to
ef6a094
Compare
|
👋 @nicohrubec, @s1gr1d — Please review this PR when you get a chance! |
Lms24
left a comment
There was a problem hiding this comment.
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.
|
@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 |
629eec6 to
d073e4e
Compare
6a59f5c to
5353fe6
Compare
|
👋 @nicohrubec, @s1gr1d — Please review this PR when you get a chance! |
|
Hi @nicohrubec, thanks for the feedback. I've pushed the follow-up changes addressing your comments, including instrumentation of the existing Observable and WebSocket E2E coverage. I've also updated the WebSocket span operation and origin attributes and handled span cleanup if the handler throws. Could you please take another look at the latest changes and let me know if anything else needs to be addressed? Thanks for your time! |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
❌ 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 664c18b. Configure here.
Co-Authored-By: OpenAI/ChatGPT GPT-6 <codex@openai.com>
Co-Authored-By: OpenAI/ChatGPT GPT-6 <codex@openai.com>
|
Hi @nicohrubec, I've pushed the latest fixes addressing the remaining review and Bugbot findings. I've also added regression tests covering asynchronous WebSocket handler failures and verified that failed handlers correctly produce error-status spans. All CI checks are now passing. Could you please take another look at the updated PR when you get a chance? Thanks for your time and feedback! |
|
@faizansaiyed123 Thanks for the updates. I'll take another look eventually but this feature is not a high priority for us at the moment and I am tied up with other projects, so might take a while. Sorry about the delay. |
|
Hey @faizansaiyed123, thanks a lot for this PR and for sticking with it through the review rounds! We're going to take it over from here so we can get it over the line. While testing it we found two things that needed bigger changes:
Your commits are kept as they are in #26768, which is stacked on #26775, so you'll be credited when it's released. I'll close this one in favor of those. Thanks again! |

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