- Docker and Docker Compose
- A Sentry DSN
SENTRY_DSN=<your-dsn> ./run.shThis starts two containers:
- db: PostgreSQL 16 with a
test_multilinedatabase - app: FastAPI server on port 5000, using a local editable install of
sentry-python(mounted from../../sentry-python)
On first startup, the app creates users and posts tables and seeds sample data.
-
Hit the query endpoint:
curl http://localhost:5000/query
-
Watch the app container logs for the
[before_send_transaction]output. The callback attempts to match a multiline SQL string against span descriptions but fails to find a match.