Non-scalar span attribute makes the server reject the whole event batch
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- python
調査の方向性
Start with SpanContextManager.set_attributes() in wildedge/client.py:223 and the span constructor, then run the provided reproduction to confirm the 422 and dropped batch. Decide how non-scalar values should be handled, including whether to warn or coerce them, and update the relevant tests if present. Done means a non-scalar attribute no longer causes unrelated events in the batch to be rejected.
索引モデルが issue の本文から書いたものです。
説明
What happens
SpanContextManager.set_attributes() (wildedge/client.py:223) accepts any value. If one value is a list, e.g. span.set_attributes(rejections=["English", "too long"]), ingest answers 422 (span attributes['rejections'] must be a scalar) and every event in that batch is dropped: model loads, inferences and spans that had nothing to do with the bad attribute.
Found while integrating a llama.cpp + Whisper app; a whole run's telemetry disappeared because of one attribute.
Expected
One bad value should never cost unrelated events. Options, roughly in order of preference:
- Validate in
set_attributes()/ span constructor: drop (orstr()) non-scalar values and log a warning once. - Coerce lists of scalars to a joined string (plus a
<key>_count?) — that's what we did app-side as a workaround. - On a 422 that names a field, retry the batch without the offending event instead of dropping all of it.
Repro
client = wildedge.init()
with client.trace(run_id="r"):
with client.span(kind="custom", name="s") as span:
span.set_attributes(tags=["a", "b"])
client.close(timeout=5) # batch rejected with 422, nothing ingested
SDK 0.2.2.
🤖 Generated with Claude Code
- 主要言語
- Python
- スター
- 17
- フォーク
- 1
- 平均マージ
- 17時間 5分
- マージ済み PR(30日)
- 34
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
wild-edge/wildedge-python のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
wild-edge/wildedge-python#85 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
wild-edge/wildedge-python#78 ·
メンテナーはふだん 1 日以内に返信
-
vLLM integration再び着手できるかも @piotrekno1 が 122 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
wild-edge/wildedge-python#38 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
wild-edge/wildedge-python#25 ·
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue help wanted
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
wild-edge/wildedge-python#22 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
wild-edge/wildedge-python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
gramaziokohler/compas_timber#870 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
autowarefoundation/autoware_carla_scenario#500 ·
メンテナーはふだん 1 日以内に返信
-
good first issue priority: low size: XS testing
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
cubrid-lab/cubrid-mcp-server#385 ·
メンテナーはふだん 1 日以内に返信
-
good first issue priority: low size: S testing
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
cubrid-lab/cubrid-cookbook-python#447 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100