Skip to content

Tracking enhacements for Elasticsearch.search #354

@honzakral

Description

@honzakral

Currently in https://github.com/elastic/apm-agent-python/blob/master/elasticapm/instrumentation/packages/elasticsearch.py#L47 we are discarding everything but the query in the body which can cover some very important (from a performance point of view) aspects of the operation for example pagination - large from/size can have severe impact - and aggregations - if present can severely impact everything.

It would also be great to track the statistics on the response:

took, hits.total, _shards.total/failed/successful information

which can expose badly structured code/queries or performance issues in elasticsearch

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions