Skip to content
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

opentelemetry-instrument fails to load flask instrumentaiton if werkzeug==3.0.0 #2058

Open
aleuyX opened this issue Nov 13, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@aleuyX
Copy link

aleuyX commented Nov 13, 2023

Steps to reproduce
Use opentelemetry-instrument command to instrument a flask application (flask<3)

What is the expected behavior?
Instrumentation works

What is the actual behavior?
Instrumentation does not work, and no error is shown in the console

Additional context
I had to use breakpoints to inspect instrumentation loading, found that the instrumentation wants
werkzeug<3.0.0 when I have werkzeug==3.0.0

I was following opentelemetry flask instrumentation tutorial which asks for flask<3, the latest version installed by pip is flask==2.3.3 which requires Werkzeug >= 2.3.7, currently pip will install Werkzeug==3.0.0 which leads to this issue.

As the logs of the instrumentation are muted the dependency error is not shown, werkzeug version was pinned here #1980

@aleuyX aleuyX added the bug Something isn't working label Nov 13, 2023
@antymijaljevic
Copy link

Yes, confirming this
@aleuyX True. I made it work properly only with Flask==2.3.3 and Werkzeug==2.3.7
Hopefully the team will fix the bug so that we can use Flask 3.

@philipcwhite
Copy link

I had the same issues. It looks like there is a pull request pending to fix this. #2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants