test: backend coverage parity audit post-refactor

Abierto
#1,054 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
28/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
python

Línea de trabajo

Start with test/MARKERS_GUIDE.md to learn how backend-specific integration markers gate tests, then look at how each backend (openai, ollama, huggingface, watsonx, litellm) emits generation spans. Check the Anthropic cache and reasoning token attributes from PR #1036 against the current OTel GenAI semconv. Done means a shared minimum attribute set is asserted per backend, gaps are documented, and the Anthropic names are renamed or commented. Work depends on #1045 and #1046, so confirm those have merged first.

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

Descripción

area/backends area/telemetry p2 testing

Background

Refresh of retired sub-issue #477. After the plugin refactor, verify all backends emit spans uniformly and parity holds across openai, ollama, huggingface, watsonx, litellm (and vllm if applicable).

Scope

  • Add integration tests (gated on backend-specific markers, per test/MARKERS_GUIDE.md) asserting each backend produces backend-generation spans with a matching set of gen_ai.* attributes.
  • Document any backend-specific attribute gaps.
  • Cross-check the Anthropic-specific cache/reasoning token attributes emitted by PR #1036 (gen_ai.usage.cache_read.input_tokens, gen_ai.usage.cache_creation.input_tokens, gen_ai.usage.reasoning.output_tokens) against the current OTel GenAI semconv at audit time; rename to match the spec if equivalents have been standardised, otherwise flag with a code comment as Anthropic-specific extensions pending standardisation. (Per @planetf1's comment on #444.)

Phase & dependencies

Phase 3 (polish). Depends on #1045 and #1046. Can start any time after Phase 1 lands; best done after most of Phase 2 has merged so the audit is against steady-state tracing.

Acceptance criteria

  • All backends produce backend-generation spans with a shared minimum attribute set.
  • Known gaps documented.
  • Anthropic-specific cache/reasoning token attribute names cross-checked against OTel GenAI semconv; renamed or flagged as documented above.

Parent epic: #444

Lenguaje dominante
Python
Estrellas
1.8k
Forks
161
Merge medio
4 d 3 h
PR fusionados (30 d)
45

Preparar el entorno

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 generative-computing/mellea

Todos los issues de generative-computing/mellea

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.