Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ endif::[]
* Differentiate Lambda URLs from API Gateway in AWS Lambda integration {pull}#1609[#1609]
* Restrict the size of Django request bodies to prevent APM Server rejection {pull}#1610[#1610]
* Restrict length of `exception.message` for exceptions captured by the agent {pull}#1619[#1619]
* Fix error when using elasticsearch(sniff_on_start=True) {pull}#1618[#1618]



Expand Down
2 changes: 1 addition & 1 deletion elasticapm/instrumentation/packages/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class ElasticsearchConnectionInstrumentation(AbstractInstrumentedModule):

def call(self, module, method, wrapped, instance, args, kwargs):
span = execution_context.get_span()
if isinstance(span, DroppedSpan):
if not span or isinstance(span, DroppedSpan):
return wrapped(*args, **kwargs)

self._update_context_by_request_data(span.context, instance, args, kwargs)
Expand Down