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
Add a new file run.py with the contents to convert flask WSGI to ASGI
from app import app
from asgiref.wsgi import WsgiToAsgi
# Convert the Flask WSGI app to ASGI
asgi_app = WsgiToAsgi(app)
if __name__ == '__main__':
app.run(debug=True)
Now run with gunicorn -w 4 run:app or gunicorn -w 4 -k uvicorn.workers.UvicornWorker run:asgi_app
One of our teammates reported the issue and they use asgi with flask. And they reported that the issue happens only with uvicorn. So I just used this sample app to re-create the problem.
Describe the bug:
When I run as
gunicorn -w 4 run:app
using its own wsgi, then I see data in Kibana.When I run as
gunicorn -w 4 -k uvicorn.workers.UvicornWorker run:asgi_app
, then I do not see the transactions showing up.To Reproduce
cd http
run.py
with the contents to convert flask WSGI to ASGIgunicorn -w 4 run:app
orgunicorn -w 4 -k uvicorn.workers.UvicornWorker run:asgi_app
It seems related to #1331
The text was updated successfully, but these errors were encountered: