elastic / elastic/apm-agent-python

Elasticsearch Parallel Bulk Helper not picked up as Spans

Open
#1,759 0 comments 0 reactions 0 assignees View on GitHub
agent-python bug community
Dominant language
Python
Stars
431
Forks
239
Avg merge
5d 10h
Merged PRs (30d)
7

Description

**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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.