feat(telemetry): extend OTel log bridge to cover user application loggers
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
- 40/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- observability
Línea de trabajo
Start by finding where Mellea attaches its OTLP log handler to the mellea.* logger hierarchy, and check how the MELLEA_LOGS_OTLP environment variable turns it on. Work out whether the handler can move to the root logger or be made configurable without duplicating records. Done means a record from a user's logging.getLogger(__name__) reaches the OTLP exporter with its trace and span IDs when MELLEA_LOGS_OTLP=true. The issue has no comments yet, so confirm the approach with maintainers before implementing.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Mellea's OTel log bridge forwards only mellea-internal loggers to the OTLP log exporter. Log lines emitted by user application code via `logging.getLogger(name)` are formatted with `trace_id` / `span_id` on stdout (the OTel trace filter is applied) but are not forwarded to any configured OTLP exporter.
This breaks the "debug this one request" use case that structured logging is meant to enable. An operator sees an interesting span in their trace backend and wants to pivot to the correlated log lines from the application layer — business events, decision points, intermediate results — but those lines never reach the backend.
Observed behaviour (confirmed)
Application log calls such as:
logger = logging.getLogger(__name__)
logger.info("Triage: category=%s urgency=%s", result.category, result.urgency)
logger.info("Draft ready (%d chars)", len(draft_reply))
logger.error("Enrichment service unreachable: %s", exc_type, exc_info=True)
appear on stdout with `trace_id` and `span_id` fields, but do not appear in the OTLP log backend. Only mellea-internal log records (from `mellea.*` loggers) are exported.
Expected behaviour
Any logger in the application's logging hierarchy should have its records forwarded to the OTLP log exporter when `MELLEA_LOGS_OTLP=true`, so that application log lines appear alongside mellea's own internal logs in the backend, all correlated to their trace.
The fix is likely a change to which logger(s) the OTLP log handler is attached — attaching to the root logger (or making the attachment point configurable) would cover all application loggers without requiring any change to user code.
- 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
-
cron: raise a distinct error when next_fire finds no match in its search bound (from #813 item 5)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Pin Hugging Face commit revisions for AuK weight downloads and eliminate post-download SHA TOCTOUAbiertoarea:voice better-dependency-freedom dependencies effort:low in-progress model:medium plan planner:gemini-4-neon-high priority:2 security
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Los mantenedores suelen responder en 1 día
-
needs-area-label
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
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