- Install dependency
pip install -r requirements.txt
- Run infra
make infra
- Run server
make server
- Do stress test
make stress
- See Jaeger (http://localhost:16686/search) for traces
(env) ➜ flask-otel git:(main) ✗ make server
python app.py
* Serving Flask app 'app'
* Debug mode: on
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on http://127.0.0.1:8080
Press CTRL+C to quit
* Restarting with stat
* Debugger is active!
* Debugger PIN: 719-749-963
127.0.0.1 - - [14/Oct/2023 23:18:31] "POST /books/purchase HTTP/1.1" 200 -
127.0.0.1 - - [14/Oct/2023 23:18:31] "POST /books/purchase HTTP/1.1" 200 -
127.0.0.1 - - [14/Oct/2023 23:18:31] "POST /books/purchase HTTP/1.1" 408 -
TODO:
- Add tracing for high latency
- Add tracing for error
- Write blog
- Convert blog to slides
Slide: Google Slides