Skip to content

Commit 1874501

Browse files
authored
Update __init__.py
1 parent 81fd1ff commit 1874501

File tree

1 file changed

+2
-2
lines changed
  • instrumentation/opentelemetry-instrumentation-elasticsearch/src/opentelemetry/instrumentation/elasticsearch

1 file changed

+2
-2
lines changed

instrumentation/opentelemetry-instrumentation-elasticsearch/src/opentelemetry/instrumentation/elasticsearch/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def instrumentation_dependencies(self) -> Collection[str]:
130130

131131
def _instrument(self, **kwargs):
132132
"""
133-
Instruments elasticsarch module
133+
Instruments elasticsearch module
134134
"""
135135
tracer_provider = kwargs.get("tracer_provider")
136136
tracer = get_tracer(__name__, __version__, tracer_provider)
@@ -145,7 +145,7 @@ def _instrument(self, **kwargs):
145145
)
146146

147147
def _uninstrument(self, **kwargs):
148-
unwrap(elasticsearch.Transport, "perform_request")
148+
unwrap(elasticsearch.AsyncTransport, "perform_request")
149149

150150

151151
_regex_doc_url = re.compile(r"/_doc/([^/]+)")

0 commit comments

Comments
 (0)