Trace global user instruction loading (#45496)

## What changed

Add an `instructions.load` tracing span with `provider = "global"` around loading user instructions from the Codex home directory. Skip recording function arguments and add the `tracing` dependency to `codex-home`.

GitOrigin-RevId: 1b11e4b18f7a0dbee742a092aba580a184dc5fbf
This commit is contained in:
vkg-oai authored and copyberry committed 2026-09-14 19:12:59 +00:00
1 parent a20092a7a2
commit afaad7cdc0
3 files changed
+3

No files matched your search

@@ -37,6 +37,7 @@ impl CodexHomeUserInstructionsProvider {
}
}
#[tracing::instrument(name = "instructions.load", skip_all, fields(provider = "global"))]
async fn load_from_codex_home(&self) -> LoadedUserInstructions {
let mut warnings = Vec::new();
for candidate in [LOCAL_AGENTS_MD_FILENAME, DEFAULT_AGENTS_MD_FILENAME] {