-
Notifications
You must be signed in to change notification settings - Fork 79
Removed conn str and added exclude #281
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
Conversation
| raise Exception("Hit an exception") | ||
|
|
||
|
|
||
| # Set the OTEL_PYTHON_EXCLUDE_URLS environment variable to "http://127.0.0.1:8000/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.
Should add this env var to the README
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.
I guess we could. It's part of the instrumentation's readmes, but we did include it in the docs. There are other instrumentation related env vars I have not delt with much, so I think it would make sense to leave that for another PR where I add a whole section for instrumentation configuration env vars
|
|
||
| configure_azure_monitor( | ||
| connection_string="<your-connection-string>", | ||
| # connection_string="<your-connection-string>", |
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.
What's the reason for this change?
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.
The distros are generally prioritizing the use of the conn str env var over pass ins. So, I made this change to match the distro docs. It also makes running the samples far less tedious.
Update samples to rely on conn str env var. Updated samples that used to have instrumentation configs with env var instructions.