I'm running a flask application and everything works fine if I'm running the application in dev environment i.e. directly from command line or my IDE aka Pycharm.
But when I run the same app on production via gunicorn, it only sends agents requests and no events requests so in APM in kibana, no service shows up.
Reproduction steps:
- Create a basic flask app and call
client.begin_transaction and client.end_transaction before and after each request so as to log time of each request.
- Run the app via
gunicorn.
- Make a request to the app via browser or postman.
Expected behavior:
The apm server logs show /intake/v2/events requests as well as /config/v1/agents request.
Environment/
- OS: macOS
- Python version: 3.5
- Framework and version: Flask 1.0.2
- Elasticsearch version: 7.4.1
- Kibana version: 7.4.1
- APM Server version: 7.4.1
- Agent version: 5.2.2
Additional context
I'm running Elasticsearch on 0.0.0.0:9200, Kibana on 0.0.0.0:5601, and APM on 0.0.0.0.8200.
A curl request to all these shows the desired result.
I'm running a flask application and everything works fine if I'm running the application in dev environment i.e. directly from command line or my IDE aka Pycharm.
But when I run the same app on production via gunicorn, it only sends
agentsrequests and noeventsrequests so in APM in kibana, no service shows up.Reproduction steps:
client.begin_transactionandclient.end_transactionbefore and after each request so as to log time of each request.gunicorn.Expected behavior:
The apm server logs show
/intake/v2/eventsrequests as well as/config/v1/agentsrequest.Environment/
Additional context
I'm running Elasticsearch on 0.0.0.0:9200, Kibana on 0.0.0.0:5601, and APM on 0.0.0.0.8200.
A
curlrequest to all these shows the desired result.