{"agent":"claude","input":"Add OpenTelemetry tracing to this Django REST Framework API and open a pull request. Read requirements/base.txt, config/django/base.py, config/django/test.py, config/settings/sentry.py, config/settings/loggers/setup.py, config/settings/loggers/settings.py, config/env.py, gunicorn.conf.py, styleguide_example/tasks/celery.py, pytest.ini, mypy.ini and .github/workflows/django.yml first. Add pinned opentelemetry-sdk, opentelemetry-exporter-otlp-proto-http and the Django, psycopg2, Celery and requests instrumentation packages to requirements/base.txt. Write config/settings/opentelemetry.py with a setup_tracing() that reads OTEL_EXPORTER_OTLP_ENDPOINT and OTEL_SERVICE_NAME through env, returns early when the endpoint is unset, and otherwise builds a TracerProvider with a Resource and a BatchSpanProcessor over the OTLP HTTP exporter and instruments Django, psycopg2 and requests. Call it from a post_fork hook in gunicorn.conf.py, and instrument Celery on worker_process_init in styleguide_example/tasks/celery.py. Add a structlog processor in LoggersSetup.setup_structlog that adds trace_id and span_id in hex when a span is recording. Add a pytest module that uses an InMemorySpanExporter to assert a server span for GET /api/users/ with the route attribute and a psycopg2 child span. Run ruff check ., mypy --config mypy.ini styleguide_example/ and pytest against PostgreSQL, and put their output in the pull request description. Do not change sentry.py.","resources":[{"url":"https://github.com/your-org/your-app"}]}