Skip to content

[codex] add latency tracing spans - #27710

Merged
rphilizaire-openai merged 5 commits into
mainfrom
dev/rphilizaire/codex-latency-spans
Jun 13, 2026
Merged

[codex] add latency tracing spans#27710
rphilizaire-openai merged 5 commits into
mainfrom
dev/rphilizaire/codex-latency-spans

Conversation

@rphilizaire-openai

@rphilizaire-openai rphilizaire-openai commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Why

We have some large gaps in our thread start, resume, and pre-sampling traces that make it hard to tell where latency is coming from.

What Changed

  • Added coarse spans around thread start/resume, turn context construction, rollout reconstruction, skill/plugin loading, and tool preparation.
  • Added a breakdown of discoverable-tool preparation across connector loading, plugin discovery, and local plugin details.

Testing

  • cargo check -p codex-app-server -p codex-core -p codex-core-skills -p codex-core-plugins
  • Built the app-server locally and exercised thread start, first turn, follow-up turn, server restart, thread resume, and a resumed turn.

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@rphilizaire-openai

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

let requested_cwd = typesafe_overrides.cwd.clone();
let mut config = config_manager
.load_with_overrides(config_overrides.clone(), typesafe_overrides.clone())
.instrument(info_span!("app_server.thread_start.load_config"))

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.

trace_span?

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.

  • should probably be on the method

@rphilizaire-openai
rphilizaire-openai force-pushed the dev/rphilizaire/codex-latency-spans branch from b8502f4 to 6eea710 Compare June 12, 2026 23:44
@rphilizaire-openai
rphilizaire-openai merged commit bacfc5e into main Jun 13, 2026
45 of 47 checks passed
@rphilizaire-openai
rphilizaire-openai deleted the dev/rphilizaire/codex-latency-spans branch June 13, 2026 00:11
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants