Skip to content

feat(gateway): improve startup timing diagnostics#1190

Merged
su8su merged 1 commit into
mainfrom
feat/add_debug_logs
Jul 23, 2026
Merged

feat(gateway): improve startup timing diagnostics#1190
su8su merged 1 commit into
mainfrom
feat/add_debug_logs

Conversation

@su8su

@su8su su8su commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 83c176fb85

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

openclawTrace: startupTrace,
};
logger.info('[metric] gateway.startup', startupMetric);
if (spawnToReadyMs !== undefined && spawnToReadyMs >= GATEWAY_STARTUP_SLOW_TOTAL_MS) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Measure slow startup through the handshake

In this managed-start path, tReady is set before connectWithStartupRetry runs, so this condition only measures the readiness probe rather than spawn-to-handshake time. If the gateway emits connect.challenge quickly but the actual connect handshake/retry loop pushes startup over 30s (for example repeated gateway starting responses), the slow-startup summary is skipped even though the user experienced the slow startup and the added task expects spawn-to-handshake coverage. Use tConnected - tSpawned or another post-handshake duration for the threshold.

Useful? React with 👍 / 👎.

@su8su
su8su merged commit 378e01e into main Jul 23, 2026
7 checks passed
@su8su
su8su deleted the feat/add_debug_logs branch July 23, 2026 03:06
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