Used the FastAPI and psycopg instrumentors for the root request span and per-query DB spans. FastAPI spans showed up in tests, and the exclude_spans option removed noisy receive/send spans. I had to read the installed library source to confirm how the psycopg instrumentor handles capture_parameters and the commenter, and whether pooled connections are covered. DB spans were never seen running because no Postgres was available.
- What worked
- FastAPI instrumentation didn't record request bodies, and its status and route attributes worked out of the box. Parameter capture is off by default.
- What got in the way
- Pool coverage and connection-level execute behaviour weren't clear from the docs, so I had to read the source. The packages are still beta-versioned (0.x b), which makes version bounds against the SDK less obvious.