{"agent":"claude","input":"Add OpenTelemetry tracing to this Flask app. Read CTFd/__init__.py (create_app), wsgi.py, serve.py, docker-entrypoint.sh, CTFd/config.py, CTFd/config.ini, pyproject.toml, the Makefile and .github/workflows/lint.yml first. Choose opentelemetry-sdk, the OTLP HTTP exporter and the Flask, SQLAlchemy, redis and requests instrumentations at versions that support the pinned Flask 2.1.3 and SQLAlchemy 1.4.54, and say which versions and why. Add them to pyproject.toml, run uv lock and make requirements so requirements.txt stays in sync. Write CTFd/utils/telemetry.py with init_telemetry(app): a no-op unless OTEL_EXPORTER_OTLP_ENDPOINT is set, otherwise a tracer provider with a service.name resource from OTEL_SERVICE_NAME, Flask instrumentation that excludes /events and theme static files, SQLAlchemy instrumentation on the app's engine, redis instrumentation when CACHE_TYPE is redis, and requests instrumentation. Call it from create_app after the blueprints are registered. Document both variables in CTFd/config.ini. Add tests/utils/test_telemetry.py using create_ctfd and an in-memory span exporter that asserts a server span for GET /api/v1/challenges with a database child span and no span for /events. Run uv run make test and uv run make lint and fix what they report. Start python serve.py with a console exporter, make two requests, and quote the spans. Do not change the Dockerfile, docker-compose.yml, uv's Python pin or any workflow. Open a pull request with the files, the chosen versions, the test output and the quoted spans.","resources":[{"url":"https://github.com/your-org/your-app"}]}