Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

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.

Code Requirements

The best way to get started is to clone this repo and run:

Execution:

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

Implementations:

  • Basic request and response traces would look like: