feat(telemetry): respect OTEL_EXPORTER_OTLP_PROTOCOL — support HTTP/protobuf exporter
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 66/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- python
調査の方向性
gRPC エクスポーターは opentelemetry.exporter.otlp.proto.grpc から無条件にインポートされています(OTLPSpanExporter と OTLPMetricExporter)。まず mellea のテレメトリ設定がそれらをどこでインポートしているかを見つけてください。エンドポイントと環境変数をどのように読み取っているかを確認し、OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf の分岐を追加して、opentelemetry.exporter.otlp.proto.http のエクスポーターを使うようにしてください。この設定で HTTP エクスポーターが選択され、デフォルトと grpc がこれまでどおり動作し、テストまたは手動実行で HTTP のパスが確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Python
- スター
- 1.8k
- フォーク
- 161
- 平均マージ
- 4日 3時間
- マージ済み PR(30日)
- 45
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
generative-computing/mellea のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
generative-computing/mellea#1864 ·
メンテナーはふだん 3 日以内に返信
-
bug: instruct() and react() replay tool-call turns without tool_calls対応中かも @simonyang08 が 21 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
generative-computing/mellea#1784 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Silently mangled docstrings: lone backslash line-continuations in non-raw docstrings collapse command examples対応中かも @madhusudhan1260 が 18 日前に担当しました。 オープンgood first issue p2
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
generative-computing/mellea#1780 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 3 日以内に返信
-
area/requirement area/stdlib enhancement p2
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
generative-computing/mellea#31 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
generative-computing/mellea#1863 ·
メンテナーはふだん 3 日以内に返信
generative-computing/mellea の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
OpenFreeEnergy/openfe#2371 ·
メンテナーはふだん 2 日以内に返信
-
HMDB's smiles file writes "None" for metabolites with an empty <smiles/> (file not currently used)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
NCATSTranslator/Babel#1269 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信
-
404 on sample dataオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
bcgov/nr-hydrometric-rating-curve#443 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100