python -m src.main
pip install -e .uv run python -m src.mainThe server will start on http://localhost:8081
Homepage with trace info:
curl http://localhost:8081/Health check:
curl http://localhost:8081/healthAsync operations demo:
curl http://localhost:8081/demo-asyncPing with trace headers:
curl -H "X-Session-ID: my-session-123" http://localhost:8080/pingWhen you make requests, you'll see logs like this:
2024-01-15 10:30:45 - src.main - INFO - [req=a1b2c3d4|session=550e8400] - Request started: GET /
2024-01-15 10:30:45 - src.main - INFO - [req=a1b2c3d4|session=550e8400] - Homepage accessed
2024-01-15 10:30:45 - src.tracing_middleware - INFO - [req=a1b2c3d4|session=550e8400] - Request completed: 200 in 12.3ms