Skip to content

Trace MCP binding capture and tool catalog refresh - #62320

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e5a5c037455c755fe74ead9f0efabfcd7a9529bf
Nov 18, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e5a5c037455c755fe74ead9f0efabfcd7a9529bf

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 18, 2026 •

Copy link
Copy Markdown

Trace MCP binding capture and tool catalog refresh

Why

When MCP binding capture or a catalog refresh is slow, separate spans
help identify whether the time went to startup, lock waits, or tool
catalog processing.

What changed

  • Trace server startup waits, catalog revision checks and snapshot
    reads, and tool preparation and normalization.
  • Trace catalog refresh lock waits, fetching, and publication, including
    time spent waiting for active tool calls to finish.
  • Record cache_hit on the binding capture span and trace the cache lock
    wait. Box the catalog capture future on cache misses to keep it out of
    callers' future layouts.

## Why

When MCP binding capture or a catalog refresh is slow, separate spans
help identify whether the time went to startup, lock waits, or tool
catalog processing.

## What changed

- Trace server startup waits, catalog revision checks and snapshot
  reads, and tool preparation and normalization.
- Trace catalog refresh lock waits, fetching, and publication, including
  time spent waiting for active tool calls to finish.
- Record `cache_hit` on the binding capture span and trace the cache lock
  wait. Box the catalog capture future on cache misses to keep it out of
  callers' future layouts.

GitOrigin-RevId: e5a5c037455c755fe74ead9f0efabfcd7a9529bf
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e5a5c037455c755fe74ead9f0efabfcd7a9529bf branch from d825c0b to f2d3086 Compare November 18, 2026 17:38
@copyberry
copyberry Bot merged commit f2d3086 into main Nov 18, 2026
11 of 24 checks passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T17:39:11.601693Z d825c0b PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e5a5c037455c755fe74ead9f0efabfcd7a9529bf branch November 18, 2026 17:38
@github-actions

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

This branch was previously deployed

1 inactive deployment
issue-triage — f2d30866 Deployed Nov 18, 2026 by raydoli75-lgtm via Generate label suggestions #64211
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.

4 participants