mirror of
https://github.com/openai/codex.git
synced 2026-11-03 08:22:30 +00:00
feat: add skill injected counter metric (#9575)
This commit is contained in:
1 parent
0523a259c8
commit
fabc2bcc32
2 files changed
+18
-1
No files matched your search
@@ -2812,10 +2812,11 @@ pub(crate) async fn run_turn(
|
||||
.await,
|
||||
);
|
||||
|
||||
let otel_manager = turn_context.client.get_otel_manager();
|
||||
let SkillInjections {
|
||||
items: skill_items,
|
||||
warnings: skill_warnings,
|
||||
} = build_skill_injections(&input, skills_outcome.as_ref()).await;
|
||||
} = build_skill_injections(&input, skills_outcome.as_ref(), Some(&otel_manager)).await;
|
||||
|
||||
for message in skill_warnings {
|
||||
sess.send_event(&turn_context, EventMsg::Warning(WarningEvent { message }))
|
||||
|
||||
Reference in new issue
Block a user