From fa1ff06b6bdac76ee24dcafca1b9db391a76ff22 Mon Sep 17 00:00:00 2001 From: Benjamin Wohlwend Date: Mon, 26 Oct 2020 14:32:54 +0100 Subject: [PATCH] remove elasticsearch-async instrumentation elasticsearch-async has been deprecated and its functionality brought into elasticsearch-py proper. Tests for this module have already been removed in #949 --- docs/supported-technologies.asciidoc | 1 - elasticapm/instrumentation/packages/asyncio/elasticsearch.py | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/supported-technologies.asciidoc b/docs/supported-technologies.asciidoc index 59565fac6..45104d628 100644 --- a/docs/supported-technologies.asciidoc +++ b/docs/supported-technologies.asciidoc @@ -116,7 +116,6 @@ Instrumented methods: * `elasticsearch.connection.http_urllib3.Urllib3HttpConnection.perform_request` * `elasticsearch.connection.http_requests.RequestsHttpConnection.perform_request` - * `elasticsearch_async.connection.AIOHttpConnection.perform_request` Additionally, the instrumentation wraps the following methods of the `Elasticsearch` client class: diff --git a/elasticapm/instrumentation/packages/asyncio/elasticsearch.py b/elasticapm/instrumentation/packages/asyncio/elasticsearch.py index 993f90a77..6aa8c84a4 100644 --- a/elasticapm/instrumentation/packages/asyncio/elasticsearch.py +++ b/elasticapm/instrumentation/packages/asyncio/elasticsearch.py @@ -36,10 +36,7 @@ class ElasticSearchAsyncConnection(ElasticSearchConnectionMixin, AsyncAbstractInstrumentedModule): name = "elasticsearch_connection" - instrument_list = [ - ("elasticsearch_async.connection", "AIOHttpConnection.perform_request"), - ("elasticsearch._async.http_aiohttp", "AIOHttpConnection.perform_request"), - ] + instrument_list = [("elasticsearch._async.http_aiohttp", "AIOHttpConnection.perform_request")] async def call(self, module, method, wrapped, instance, args, kwargs): signature = self.get_signature(args, kwargs)