-
Notifications
You must be signed in to change notification settings - Fork 626
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for generic OTEL_PYTHON_EXCLUDED_URLS variable #790
Add support for generic OTEL_PYTHON_EXCLUDED_URLS variable #790
Conversation
2698849
to
f0a3bce
Compare
util/opentelemetry-util-http/src/opentelemetry/util/http/__init__.py
Outdated
Show resolved
Hide resolved
@@ -32,7 +32,8 @@ | |||
|
|||
Exclude lists | |||
************* | |||
To exclude certain URLs from being tracked, set the environment variable ``OTEL_PYTHON_DJANGO_EXCLUDED_URLS`` with comma delimited regexes representing which URLs to exclude. | |||
To exclude certain URLs from being tracked, set the environment variable ``OTEL_PYTHON_EXCLUDED_URLS`` or ``OTEL_PYTHON_DJANGO_EXCLUDED_URLS`` | |||
with comma delimited regexes representing which URLs to exclude. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe mention the precedence when both are set?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this wording make that clear, or should we go with a different one?
To exclude certain URLs from being tracked, set the environment variable
OTEL_PYTHON_{instrumentation}_EXCLUDED_URLS
(orOTEL_PYTHON_EXCLUDED_URLS
as fallback) with comma delimited regexes representing which URLs to exclude.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lonewolf3739 please resolve if you are satisfied with the change. thanks
@adamantike please resolve conflicts so that we can merge ✌️ |
Use `OTEL_PYTHON_EXCLUDED_URLS` environment variable as a fallback of `OTEL_PYTHON_{instrumentation}_EXCLUDED_URLS`.
Head branch was pushed to by a user without write access
de7ce9d
to
74c366d
Compare
Rebased, and changed docs wording. Let me know if that's clear enough! |
Description
Use
OTEL_PYTHON_EXCLUDED_URLS
environment variable as a fallback ofOTEL_PYTHON_{instrumentation}_EXCLUDED_URLS
.Fixes #789
Type of change
How Has This Been Tested?
tox -e test-util-http
Does This PR Require a Core Repo Change?
Checklist: