Skip to content

Track app server startup analytics by transport#25193

Draft
anp-oai wants to merge 3 commits into
mainfrom
codex/add-appserver-start-analytics
Draft

Track app server startup analytics by transport#25193
anp-oai wants to merge 3 commits into
mainfrom
codex/add-appserver-start-analytics

Conversation

@anp-oai
Copy link
Copy Markdown
Collaborator

@anp-oai anp-oai commented May 30, 2026

Why

We want visibility into app-server startup latency so regressions can be detected across both standalone app-server launches and the embedded app-server runtime used by the TUI.

What Changed

  • Added a codex_app_server_started analytics event with:
    • rpc_transport to identify the startup path (stdio, websocket, or in_process)
    • duration_ms for measured startup duration
    • created_at and runtime metadata
  • Emitted the startup event from:
    • standalone app-server startup
    • embedded in-process app-server startup used by the TUI
  • Updated existing analytics integration helpers and assertions to handle the startup event being emitted before later lifecycle events.
  • Documented the startup event timestamp and duration fields.

Validation

  • Added integration coverage for standalone startup reporting rpc_transport: "stdio".
  • Added integration coverage for embedded startup reporting rpc_transport: "in_process".

Comment thread codex-rs/analytics/src/reducer.rs Outdated
@anp-oai
Copy link
Copy Markdown
Collaborator Author

anp-oai commented May 30, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Nice work!

ℹ️ About Codex in GitHub

Your team has set up Codex to 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 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

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