Skip to content

Commit d055760

Browse files
committed
Add docs
1 parent 49bd7c8 commit d055760

File tree

1 file changed

+14
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client

1 file changed

+14
-0
lines changed

instrumentation/opentelemetry-instrumentation-aiohttp-client/src/opentelemetry/instrumentation/aiohttp_client/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,20 @@ def response_hook(span: Span, params: typing.Union[
8484
8585
AioHttpClientInstrumentor().instrument(request_hook=request_hook, response_hook=response_hook)
8686
87+
Exclude lists
88+
*************
89+
To exclude certain URLs from tracking, set the environment variable ``OTEL_PYTHON_AIOHTTP_CLIENT_EXCLUDED_URLS``
90+
(or ``OTEL_PYTHON_EXCLUDED_URLS`` to cover all instrumentations) to a string of comma delimited regexes that match the
91+
URLs.
92+
93+
For example,
94+
95+
::
96+
97+
export OTEL_PYTHON_AIOHTTP_CLIENT_EXCLUDED_URLS="client/.*/info,healthcheck"
98+
99+
will exclude requests such as ``https://site/client/123/info`` and ``https://site/xyz/healthcheck``.
100+
87101
API
88102
---
89103
"""

0 commit comments

Comments
 (0)