-
Notifications
You must be signed in to change notification settings - Fork 2.4k
feat(telemetry): Phase 2 — tool.blocked_on_user + hook spans (#3731) #4321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 13 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
38ba22d
feat(telemetry): Phase 2 — tool.blocked_on_user + hook spans
doudouOUC 6767469
fix(telemetry): address #4321 review — Copilot inline + code-reviewer…
doudouOUC 32f94d3
fix(telemetry): close autoApprove blocked-span leak + cover three new…
doudouOUC 68dea8a
fix(telemetry): revert autoApprove catch finalizeBlockedSpan (#4321 c…
doudouOUC 2b227b0
fix(telemetry): split tool.failure_kind labels + cover proceed_once d…
doudouOUC cc3f7fc
fix(telemetry): address #4321 wenshao Critical + bot summary nits
doudouOUC f9ff554
refactor(telemetry): extract withHookSpan helper + drop dead finalize…
doudouOUC eafe688
fix(telemetry): hook span error tracking + TTL cleanup safety + call_…
doudouOUC 574f645
fix(telemetry): close hookError plumbing gaps from final pre-merge audit
doudouOUC 48e78d6
test(telemetry): cover #4321 rethrow path + 2 of the new failure_kind…
doudouOUC 9cbbdfc
fix(telemetry): adopt 4 wenshao Critical/Suggestion findings on PR #4321
doudouOUC 31921a9
fix(telemetry): adopt 7 DeepSeek /review findings on PR #4321
doudouOUC fc509d5
fix(telemetry): adopt 3 wenshao /review findings on PR #4321
doudouOUC f0befac
fix(telemetry): adopt 7 wenshao /review round-3 findings on PR #4321
doudouOUC 8716069
fix(telemetry): polish 2 wenshao /review round-4 nits on PR #4321
doudouOUC e7dd8aa
fix(telemetry): adopt 4 wenshao /review round-5 findings on PR #4321
doudouOUC 51cb97c
fix(telemetry): adopt 1 wenshao /review round-6 finding on PR #4321
doudouOUC 84851f2
fix(telemetry): close 4 silent-failure + test-gap findings from final…
doudouOUC 2c268a8
fix(telemetry): adopt 3 wenshao /review round-8 findings on PR #4321
doudouOUC a1d1190
fix(telemetry): adopt 3 wenshao /review round-9 findings on PR #4321
doudouOUC ac7597e
test(telemetry): pin empty-string runner error sentinel behavior on P…
doudouOUC File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion] Catch blocks construct
hookErroraserror instanceof Error ? error.message : String(error)without the empty-string guard that the runner-contract-violation paths already apply. If a hook transport throwsnew Error(''),hookErroris''; downstreamr.hookError ? ...(truthiness) silently drops it, and the span recordssuccess: true— the exact allow-without-telemetry pathology the||sentinel on the!response.successpaths was designed to close.Same issue at lines 277 (
firePostToolUseHookcatch) and 356 (firePostToolUseFailureHookcatch).— qwen-latest-series-invite-beta-v34 via Qwen Code /review