feat: add skill injected counter metric (#9575)

This commit is contained in:
alexsong-oai
2026-01-20 19:05:37 -08:00
committed by GitHub
parent 0523a259c8
commit fabc2bcc32
2 changed files with 18 additions and 1 deletions

View File

@@ -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 }))