Skip to content

chore(agent): log agent-server boot timing (bootMs)#2951

Merged
tatoalo merged 3 commits into
mainfrom
chore/agent-server-boot-timing
Jun 26, 2026
Merged

chore(agent): log agent-server boot timing (bootMs)#2951
tatoalo merged 3 commits into
mainfrom
chore/agent-server-boot-timing

Conversation

@tatoalo

@tatoalo tatoalo commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Problem

Cloud-task agent-server spawn time, from node process start to a usable session (hasSession=true, what the backend health poll waits on) is currently unmeasured, so we're optimizing it blind. We want to land lightweight timing first and verify where boot time actually goes in production before shipping any speedups.

Changes

Add bootMs (wall-clock since process start, via process.uptime()) to two existing agent-server log lines:

  • "HTTP server listening" — process start → HTTP accepting (node boot + bundle/SDK parse)
  • "Session initialized successfully" — process start → hasSession=true (the full spawn)

@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

React Doctor found no issues in the changed files. 🎉

Reviewed by React Doctor for commit ebae605.

@greptile-apps

greptile-apps Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Reviews (1): Last reviewed commit: "chore(agent): log agent-server boot timi..." | Re-trigger Greptile

@tatoalo tatoalo marked this pull request as ready for review June 26, 2026 14:20
@greptile-apps

greptile-apps Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Reviews (2): Last reviewed commit: "chore(agent): update /health test for bo..." | Re-trigger Greptile

@tatoalo tatoalo merged commit c4096cc into main Jun 26, 2026
26 of 27 checks passed
@tatoalo tatoalo deleted the chore/agent-server-boot-timing branch June 26, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Create Release This will trigger a new release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants