feat(telemetry): extend OTel log bridge to cover user application loggers
I maintainer di solito rispondono entro 3 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 40/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- python
- Ambito
- observability
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Python
- Stelle
- 1.8k
- Fork
- 161
- Merge medio
- 4g 3h
- PR unite (30g)
- 45
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
generative-computing/mellea#1864 ·
I maintainer di solito rispondono entro 3 giorni
-
bug: instruct() and react() replay tool-call turns without tool_callsForse già presa @simonyang08 l’ha presa 21 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
generative-computing/mellea#1784 · 1 commento ·
I maintainer di solito rispondono entro 3 giorni
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesForse già presa @madhusudhan1260 l’ha presa 18 giorni fa. Apertagood first issue p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
generative-computing/mellea#1780 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
area/telemetry enhancement p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
generative-computing/mellea#1210 ·
I maintainer di solito rispondono entro 3 giorni
-
Add requirement priorityApertaarea/requirement area/stdlib enhancement p2
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
generative-computing/mellea#31 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di generative-computing/mellea
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
OpenFreeEnergy/openfe#2371 ·
I maintainer di solito rispondono entro 2 giorni
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
NCATSTranslator/Babel#1269 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 80/100
I maintainer di solito rispondono entro 1 giorno
-
404 on sample dataApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
bcgov/nr-hydrometric-rating-curve#443 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100