ASGI (startlette) Example App
This is an example ASGI starlette app to send traces as well as test manual instrumentation of ddtrace ASGI integration. Note that you can apply the same method to other ASGI frameworks, like daphne.
- datadog-agent,
- datadog-tracing-library &
- starlette
- ASGI server e.g: uvicorn
The best way to get started is to clone this repo and run:
If you already have datadog agent running as well as ASGI server: uvicorn, you could run: uvicorn app:app. Otherwise, prepend uvicorn with ddtrace-run, like so:
ddtrace-run uvicorn app:app
Then open your browser to http://127.0.0.1:8000
- Basic request and response traces would look like:
