elastic / elastic/apm-agent-python

Elasticsearch Parallel Bulk Helper not picked up as Spans

オープン
#1,759 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
agent-python bug community
主要言語
Python
スター
431
フォーク
239
平均マージ
5日 10時間
マージ済み PR(30日)
7

説明

**Describe the bug**: ...
```
@elasticapm.capture_span()
def index(docs):
helpers.bulk(client, docs)
```

This is instrumented:
image (13)

This:
```
@elasticapm.capture_span()
def index(docs):
deque(
helpers.parallel_bulk(
client,
docs,
chunk_size=5000,
thread_count=4,
queue_size=4,
raise_on_error=False,
raise_on_exception=False,
),
maxlen=0,
)
```

is not instrumented:

image (14)

Python 3.11, Elasticsearch language client for Python 8.6.1

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Python 3.11、Elasticsearch client 8.6.1、および helpers.parallel_bulk を囲む、示されている @elasticapm.capture_span() wrapper を使って報告を再現し、helpers.bulk と比較する。Elasticsearch helper のインストルメンテーションを追跡し、報告されている bulk オプションを維持したまま、parallel_bulk の処理が spans として現れることを確認する。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
elasticsearch, python
領域
observability
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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