Oh, I see. Our elasticsearch-py instrumentation doesn't collect the result of queries -- we just collect information that would be used for diagnosing problems with a query (the query itself, timing information, errors). Collecting the actual data returned by the query isn't relevant to monitoring the performance of the query, so it's a bit out of our scope.
However, you could add this data to your transaction using elasticapm.set_custom_context() if you want to have the results in Elasticsearch. I don't think this custom context will be automatically shown in the APM tab of Kibana, but it should be present when you drill down into the transaction.
It will be included in our next release. Thank you for pointing this out, missing aggs and similar context information was a big problem! Sorry it took me awhile to properly understand the issue.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.