Add plugin-attributed skill telemetry (#40724)

## What changed

- Add `plugin_id`, `model_slug`, and `reasoning_effort` dimensions to
  `codex.skill.injected` metrics for explicit and implicit skill invocations.
- Propagate plugin IDs from orchestrator skill metadata so resource-backed skill
  invocations can emit the same attribution.
- Record `codex.skill.turn.duration_seconds` once per plugin used in a turn,
  tagged with the model, reasoning effort, and completed, aborted, or error
  status.

GitOrigin-RevId: d249a9c4e85682b1106ac49d9e598535c6cbb06d
This commit is contained in:
jwang-openai authored and copyberry committed 2026-08-25 22:29:14 +00:00
1 parent 62bfa41a83
commit c51e7b3736
6 files changed
+235

No files matched your search

@@ -276,6 +276,10 @@ fn catalog_entry_from_resource(resource: &Resource) -> Option<SkillCatalogEntry>
)
.with_display_path(uri)
.with_alias_root(format!("skill://{namespace}"));
entry.plugin_id = meta
.get("plugin_id")
.and_then(serde_json::Value::as_str)
.map(str::to_owned);
entry.canonical_skill_id = meta
.get("skill_id")
.and_then(serde_json::Value::as_str)