test: backend coverage parity audit post-refactor

Aperta
#1,054 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
28/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

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.

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

Descrizione

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

Lingua principale
Python
Stelle
1.8k
Fork
161
Merge medio
4g 3h
PR unite (30g)
45

Preparare l'ambiente

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

Tutte le issue di generative-computing/mellea

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.