Skip to content

exec-server: centralize client RPC spans#31689

Closed
anp-oai wants to merge 3 commits into
codex/exec-server-rpc-span-fieldsfrom
codex/exec-server-client-rpc-spans
Closed

exec-server: centralize client RPC spans#31689
anp-oai wants to merge 3 commits into
codex/exec-server-rpc-span-fieldsfrom
codex/exec-server-client-rpc-spans

Conversation

@anp-oai

@anp-oai anp-oai commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

Why

environment/info uses the timed client-call path, which bypassed the existing RPC client span and left one admitted request path without the basic trace boundary.

What

Move the existing client RPC instrumentation from the normal and cleanup wrappers into their shared call_inner path. Normal, timed, and cleanup requests now receive exactly one client span; admission failures remain outside because they do not send an RPC request.

Serialize exec-server tracing tests that rebuild tracing's process-global callsite-interest cache so concurrent thread-local subscribers cannot invalidate one another's span callsites.

Validation

  • just test -p codex-exec-server rpc_client_ (5 passed)
  • just test -p codex-exec-server --lib (172 passed)
  • just test -p codex-exec-server on the completed stack (306 passed, 2 skipped)

Stack

2 of 3:

  1. #31687 — align JSON-RPC span attributes
  2. #31689 — centralize client RPC spans (this PR)
  3. #31690 — trace RPC notifications

@anp-oai anp-oai force-pushed the codex/exec-server-rpc-span-fields branch from 3b6a3e7 to c671b06 Compare July 9, 2026 02:17
@anp-oai anp-oai closed this Jul 9, 2026
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