- Notifications
You must be signed in to change notification settings - Fork 231
Closed
Labels
Description
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!