Epic
Part of Crawl Track backlog epic.
Background
Ex9 (Observability) added a Process::CLOCK_MONOTONIC timing hook only to knife status. The same pattern should be applied to other high-latency commands.
Code Paths
lib/chef/knife/status.rb:66 — reference implementation (timing around q.search)
lib/chef/knife/search.rb — #run method wraps Chef::Search::Query
lib/chef/knife/node_list.rb — iterates all nodes via server API
lib/chef/knife/ssh.rb — search + SSH fanout
Acceptance Criteria
Dependencies
- Depends on: Ex9 observability hook (already merged)
- Blocks: nothing
Estimated Size
Small–Medium — one PR per command
Epic
Part of Crawl Track backlog epic.
Background
Ex9 (Observability) added a
Process::CLOCK_MONOTONICtiming hook only toknife status. The same pattern should be applied to other high-latency commands.Code Paths
lib/chef/knife/status.rb:66— reference implementation (timing aroundq.search)lib/chef/knife/search.rb—#runmethod wraps Chef::Search::Querylib/chef/knife/node_list.rb— iterates all nodes via server APIlib/chef/knife/ssh.rb— search + SSH fanoutAcceptance Criteria
knife searchlogs:knife search: query returned N result(s) in Xsknife node listlogs:knife node list: fetched N node(s) in Xsknife sshlogs:knife ssh: search returned N node(s) in XsChef::Log.info(same as status hook)Dependencies
Estimated Size
Small–Medium — one PR per command