Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Instrumenting Django with OpenTelemetry

Install dependencies:

pip install -r requirements.txt

To run this example, create an Uptrace project to obtain a DSN and run:

export UPTRACE_DSN=https://<token>@api.uptrace.dev/<project_id>
./manage.py migrate
./manage.py runserver --noreload

Note. Use --noreload. manage.py instruments OpenTelemetry before Django starts, and the runserver autoreloader would otherwise run that setup twice (once in the reloader parent and once in the child process).

And open http://localhost:8000

See Getting started with Django and OpenTelemetry for details.