Simple application that creates some traces using Tornado 6. It uses multiple coroutines and synchronous functions with many custom and built-in handlers. It also serves static files and has access to a local Redis cache.
- Python 3.7
- Tornado 6.0
- Redis 5
Launch all backing services using docker-compose, and then execute the
application:
docker-compose up -d
env APP_PORT=8000 python server.py
Run one of the following commands and confirm traces on [https://app.datadoghq.com/apm/traces]:
curl -i localhost:8000/count/
curl -i localhost:8000/broken/
curl -i localhost:8000/executor/
curl -i localhost:8000/redirect/
curl -i localhost:8000/statics/
To confirm traces for concurrent requests:
ab -n 100 -c 4 localhost:8000/executor/