Prepare telemetry for GenAI semconv invoke_workflow -> invoke_agent merge

Abierto
#3,490 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
25/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
go, yaml

Línea de trabajo

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".

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Go
Estrellas
4.5k
Forks
937
Merge medio
1 d 10 h
PR fusionados (30 d)
150

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de kagent-dev/kagent

Todos los issues de kagent-dev/kagent

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.