Skip to content

feat(telemetry): report spawn setup_ms, tool family buckets, hydrate_ms - #1207

Closed
TheGreatAxios wants to merge 2 commits into
mainfrom
cl-9019-spawn-timings
Closed

TheGreatAxios wants to merge 2 commits into
mainfrom
cl-9019-spawn-timings

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Spawn timings for Linear CL-9019.

  • setup_ms measures worktree/admission/lane setup before runSubAgent; setup failures report setup_ms elapsed to failure.
  • Six tool family buckets (read/write/shell/search/agent/other) counted alongside tool_call_count; unknown tools fall into other so the bucket sum always holds.
  • hydrate_ms times the attachment-rehydrate transform, including resume followups via the shared decorator closure.
  • subagent_end allowlist gains the 8 numeric props; duration_ms semantics unchanged; no per-tool names emitted.

Verification: tsc clean on all touched files (repo-wide typecheck/build/tests blocked by pre-existing oauth-core skew in the shared node_modules, unrelated to this diff).

Fixes CL-9019

@linear-code

linear-code Bot commented Sep 28, 2026

Copy link
Copy Markdown

CL-9019

@TheGreatAxios

Copy link
Copy Markdown
Collaborator Author

Closing as telemetry-only: does not improve operator-facing output, and the PR is not CI-green + trivial after the 0333 merge wave. Reopen if product telemetry is prioritized separately.

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