Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Non-scalar span attribute makes the server reject the whole event batch

クローズ
#61 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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:

  1. Validate in set_attributes() / span constructor: drop (or str()) non-scalar values and log a warning once.
  2. Coerce lists of scalars to a joined string (plus a <key>_count?) — that's what we did app-side as a workaround.
  3. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wild-edge/wildedge-python のほかの issue

wild-edge/wildedge-python の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。