feat(telemetry): respect OTEL_EXPORTER_OTLP_PROTOCOL — support HTTP/protobuf exporter
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 66/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả 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
Các exporter gRPC được import vô điều kiện từ opentelemetry.exporter.otlp.proto.grpc (OTLPSpanExporter và OTLPMetricExporter), vì vậy hãy bắt đầu bằng việc tìm xem phần thiết lập telemetry của mellea import chúng ở đâu. Kiểm tra cách nó đọc endpoint và biến môi trường, sau đó thêm một nhánh cho OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf để dùng các exporter từ opentelemetry.exporter.otlp.proto.http. Công việc hoàn tất khi thiết lập này chọn các exporter HTTP, giá trị mặc định và grpc hoạt động như trước, và một bài test hoặc lần chạy thủ công xác nhận đường dẫn HTTP.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Mellea unconditionally imports `OTLPSpanExporter` and `OTLPMetricExporter` from `opentelemetry.exporter.otlp.proto.grpc`, hardcoding the gRPC transport for all signals. The standard `OTEL_EXPORTER_OTLP_PROTOCOL` environment variable is ignored.
The OTel SDK specification requires that `OTEL_EXPORTER_OTLP_PROTOCOL` be honoured. Most production collector stacks support both gRPC (port 4317) and HTTP/protobuf (port 4318), so this is not a critical gap for most deployments. However:
- Users who prefer or require HTTP/protobuf (e.g. environments where gRPC is blocked, or sidecar collectors configured for HTTP only) cannot switch without patching mellea.
- The hardcoded gRPC path means the transport cannot be overridden via the standard env var, diverging from the behaviour users expect from any other OTel-instrumented service.
Expected behaviour
When `OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf` is set, mellea should use `opentelemetry.exporter.otlp.proto.http` exporters targeting port 4318. When unset or `grpc`, current behaviour is correct.
HTTP/protobuf on port 4318 is confirmed to work with standard OTLP receivers; the exporter package is already a transitive dependency of the OTel Python SDK.
- 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
-
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
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
generative-computing/mellea#1863 ·
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