Skip to content

Commit

Permalink
Quentin review
Browse files Browse the repository at this point in the history
  • Loading branch information
xrmx committed May 16, 2024
1 parent 2ec0517 commit 3f71d2d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
To avoid duplicated tracing this instrumentation disables itself if it finds an elasticsearch client
that has OpenTelemetry support enabled.
Please be aware that the two libraries may use a different semantic convention.
Please be aware that the two libraries may use a different semantic convention, see
`elasticsearch documentation <https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/opentelemetry.html>`_.
Usage
-----
Expand Down Expand Up @@ -210,7 +211,9 @@ def wrapper(wrapped, _, args, kwargs):
otel_span = kwargs.get("otel_span")
if otel_span and otel_span.otel_span:
warnings.warn(
"Using native elasticsearch OTel instrumentation", Warning
"Instrumentation disabled, relying on elasticsearch native OTel support, see "
"https://opentelemetry-python-contrib.readthedocs.io/en/latest/instrumentation/elasticsearch/elasticsearch.html ",
Warning,
)
return wrapped(*args, **kwargs)

Expand Down

0 comments on commit 3f71d2d

Please sign in to comment.