-
Notifications
You must be signed in to change notification settings - Fork 3k
Azure Failures #34616
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Thank you for the feedback @mike-england . We will investigate and get back to you asap. |
I'll be looking into this. |
I've confirmed that the OTEL_PYTHON_EXCLUDED_URLS works as intended with full URLs, URL endings, and even wildcards. This is a question for the Flask instrumentation itself. So, I recommend creating an issue in the OTel contrib repo instead. But, let's see if we can solve it here. can you provide the full urls of the telemetry that you want to be filtered? could you also confirm that the environment variable is successfully being set in docker and visible from the app? |
Thanks for looking into this Jeremy. I can confirm the variables being set:
# env
OTEL_PYTHON_EXCLUDED_URLS=health,swagger.*
OTEL_EXPERIMENTAL_RESOURCE_DETECTORS=azure_app_service
I'm accessing my localhost endpoint: http://localhost:8080/health
I can also confirm that the requests are not showing under the operation
name, they just show as these phantom "None" response codes.
Are you able to run the docker image and code I sent? Maybe there's
something different about my azure app insights setup?
…On Wed, Mar 6, 2024 at 3:02 PM Jeremy Voss ***@***.***> wrote:
I've confirmed that the OTEL_PYTHON_EXCLUDED_URLS works as intended with
full URLs, URL endings, and even wildcards. This is a question for the
Flask instrumentation itself. So, I recommend creating an issue in the OTel
contrib repo
<https://github.com/open-telemetry/opentelemetry-python-contrib/issues>
instead. But, let's see if we can solve it here. can you provide the full
urls of the telemetry that you want to be filtered? could you also confirm
that the environment variable is successfully being set in docker and
visible from the app?
—
Reply to this email directly, view it on GitHub
<#34616 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJIQJCU2AXXKWGSQZ76ICWDYW6N6TAVCNFSM6AAAAABEGEK3XOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBSGAYDCNZXHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jeremydvoss @lzchen. |
Hi @jeremydvoss - if I'm following this correctly, it looks like this isn't an issue with the Azure components specifically. Can this be closed or is there still work for us to do in relation to this issue? |
For the record, this still shows up a lot in our azure telemetry. Has anyone tried the docker images I included to reproduce the issue? |
Describe the bug
I'm worried I'm opening up an old 'bug': #33741 but I'm still having problems with Failures being reported to Azure Application Insights. The opentelemtry-python-contrib project has updated to include support for Flask 3 (version 1.23.0/0.44b0) and I can confirm that it's working as expected. However, when I include
OTEL_PYTHON_EXCLUDED_URLS
to keep one of my endpoints from reporting, they're still showing up as a request and a failed oneTo Reproduce
Steps to reproduce the behavior:
I'm going to include some sample code in a docker file that you can try:
app.py:
Dockerfile:
requirements.txt:
And to run it:
Where
OTEL_PYTHON_EXCLUDED_URLS="health,swagger.*"
Expected behavior
Endpoint requests are ignored
Screenshots

Any suggestions? Is this a different project that would need to take care of this? Am I doing something wrong?
The text was updated successfully, but these errors were encountered: