Prepare telemetry for GenAI semconv invoke_workflow -> invoke_agent merge

Aperta
#3,490 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go, yaml
Ambito
observability

Direzione di ricerca

Start with telemetry/registry/imports.yaml and telemetry/conformance/live-check.toml, which hold the invoke_workflow references to remove or remap, then find where the invoke_agent.duration, inference_calls and tool_calls metrics and the OpenAI Agents runner name are set. The work is blocked on the upstream semantic-conventions-genai PR 571, so re-check its current state before editing. Done means the five checklist items are applied against the newer semconv pin, with the runner span no longer named "Agent workflow".

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

https://github.com/open-telemetry/semantic-conventions-genai/pull/571 removes gen_ai.invoke_workflow.internal, gen_ai.invoke_workflow.duration and gen_ai.workflow.name, and adds invoke_runner for ADK and OpenAI Agents Runner.run.

Changes needed when we bump the semconv pin:

  • Drop the invoke_workflow imports from telemetry/registry/imports.yaml.
  • In telemetry/conformance/live-check.toml, map invoke_workflow and invoke_runner to gen_ai.invoke_agent.internal.
  • Add gen_ai.operation.name to our invoke_agent.duration, inference_calls and tool_calls metrics.
  • Set the new recommended duration buckets (0.1 s to 24 h).
  • Pass the agent name as workflow_name to OpenAI Agents runs, so the runner span isn't named "Agent workflow".

Blocked on the upstream PR merging. Make sure to cross-check the latest state as smaller things might change before it merges.

Lingua principale
Go
Stelle
4.5k
Fork
937
Merge medio
1g 10h
PR unite (30g)
150

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di kagent-dev/kagent

Tutte le issue di kagent-dev/kagent

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.