Install dependencies:
pip install -r requirements.txtTo 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 --noreloadNote. Use
--noreload.manage.pyinstruments OpenTelemetry before Django starts, and therunserverautoreloader 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.