You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe your environment
I've been having problem where excluded URLs are showing up as a kind of phantom error in azure application insights. I've opened a bug under the azure sdk for python project but they suggested I open one here. That ticket is:
Basically, my telemetry is reporting correctly, but I've excluded certain URLs, mostly because kubernetes constantly pings them as a health check and when I do that they report as a failed request with no response code.
Steps to reproduce
I'm going to include some sample code in a docker file that you can try:
I am not able to replicate your behavior in a local environment. Same code as yours but setting the environment variable manually and in a python script.
Might be an issue of how you are capturing environment variables in your docker image. Could you verify that the environment variable is indeed read properly and passed into the code as expected?
Yes, I can confirm that the environment variables are being set. If I remove the exclude, everything works fine, and maybe that's my "solution" for now, other than I'll show thousands of kubernetes heartbeat messages.
Describe your environment
I've been having problem where excluded URLs are showing up as a kind of phantom error in azure application insights. I've opened a bug under the azure sdk for python project but they suggested I open one here. That ticket is:
Azure/azure-sdk-for-python#34616
Basically, my telemetry is reporting correctly, but I've excluded certain URLs, mostly because kubernetes constantly pings them as a health check and when I do that they report as a failed request with no response code.
Steps to reproduce
I'm going to include some sample code in a docker file that you can try:
app.py:
Dockerfile:
And to run it:
Where OTEL_PYTHON_EXCLUDED_URLS="health,swagger.*"
What is the expected behavior?
The transactions don't show up in telemetry at all
What is the actual behavior?
Transactions show up as errors
Additional context
Azure/azure-sdk-for-python#34616
The text was updated successfully, but these errors were encountered: