Open mike-england opened 5 months ago
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:
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 https://github.com/Azure/azure-sdk-for-python/issues/34616#issuecomment-1982001778, 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.
Describe the bug I'm worried I'm opening up an old 'bug': https://github.com/Azure/azure-sdk-for-python/issues/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?