feat(telemetry): extend OTel log bridge to cover user application loggers
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 40/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- python
- Lĩnh vực
- observability
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Python
- Star
- 1.8k
- Fork
- 161
- Merge trung bình
- 4 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 45
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của generative-computing/mellea
-
bug: `mellea.plugins.builtin_debug.generation.log_generation_post_call` shows model as unknownĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
generative-computing/mellea#1864 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug: instruct() and react() replay tool-call turns without tool_callsCó thể đã có người làm @simonyang08 đã nhận 21 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
generative-computing/mellea#1784 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examplesCó thể đã có người làm @madhusudhan1260 đã nhận 18 ngày trước. Đang mởgood first issue p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
generative-computing/mellea#1780 · 2 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 3 ngày
-
area/telemetry enhancement p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
generative-computing/mellea#1210 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Add requirement priorityĐang mởarea/requirement area/stdlib enhancement p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
generative-computing/mellea#31 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của generative-computing/mellea
Issue tương tự
-
bug game: 0100FF500E34A000 game: 0400FF500E34A001 mac packing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
jxxghp/MoviePilot#7576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
jbaruch/software-factory#266 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cron: raise a distinct error when next_fire finds no match in its search bound (from #813 item 5)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày