feat(telemetry): emit gen_ai.request.* from tracing plugin (post-#1045)
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 28/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- observability
Línea de trabajo
Start from the GENERATION_PRE_CALL hook and BackendTracingPlugin, which only exist after #1045 merges, and read start_generate_span to see where gen_ai attributes are set today. Capture the final resolved model_options just before the SDK call, not the dict at span start. Done means gen_ai.model_options.<key> (or the agreed OTel names) appears on backend spans. The maintainers have not settled pass-through versus remapping, so confirm that in the thread first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
gen_ai.request.temperature, gen_ai.request.top_p, and related request-parameter attributes are not emitted on backend spans today.
A model_options/_REQUEST_PARAM_MAP approach was prototyped in PR #1036 but withdrawn following review from @jakelorocco and @ajbozarth:
- No backend call site passed
model_options, so the code was dead. - Even if wired, the values would be pre-substitution — Mellea backends mutate
model_optionsbefore handing them to the SDK (defaults merged, provider-specific renames, unsupported keys stripped). The dict visible at the top ofstart_generate_spanis not what goes over the wire. - Per @jakelorocco: prefer pass-through as
gen_ai.model_options.<key>over a hardcoded remap to OTel-standard names, since the naming differs between providers anyway.
Approach
After #1045 lands and BackendTracingPlugin exists:
- Capture the final resolved
model_optionsdict in theGENERATION_PRE_CALLhook — the point immediately before the SDK call, where values match what the provider receives. - Emit each key/value as
gen_ai.model_options.<key>(pass-through, not remapped), or decide at that point whether OTel-standard names (gen_ai.request.temperatureetc.) are worth the remap given cross-provider naming differences.
Prerequisites
- #1045 (Phase 1 plugin/hook pattern) must merge first.
Related
Epic #444 Phase 2.
PR #1036 (where the dead-code prototype was withdrawn).
- Lenguaje dominante
- Python
- Estrellas
- 1.8k
- Forks
- 161
- Merge medio
- 4 d 3 h
- PR fusionados (30 d)
- 45
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
generative-computing/mellea#1864 ·
Los mantenedores suelen responder en 3 días
-
bug: instruct() and react() replay tool-call turns without tool_callsPosiblemente ocupada @simonyang08 la tomó hace 21 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
generative-computing/mellea#1784 · 1 comentario ·
Los mantenedores suelen responder en 3 días
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesPosiblemente ocupada @madhusudhan1260 la tomó hace 18 días. Abiertogood first issue p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
generative-computing/mellea#1780 · 2 comentarios · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
area/telemetry enhancement p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
generative-computing/mellea#1210 ·
Los mantenedores suelen responder en 3 días
-
Add requirement priorityAbiertoarea/requirement area/stdlib enhancement p2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
generative-computing/mellea#31 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de generative-computing/mellea
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
OpenFreeEnergy/openfe#2371 ·
Los mantenedores suelen responder en 2 días
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
NCATSTranslator/Babel#1269 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 Medio día Aptitud para principiantes 80/100
Los mantenedores suelen responder en 1 día
-
404 on sample dataAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
bcgov/nr-hydrometric-rating-curve#443 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100