Transactions are not propagating from middleware to the route in FastAPI applications using newer versions of uvicorn or uvloop. This results in the name of the middleware appearing in APM (eg: WebTransaction/Function/main:CanonicalLogMiddleware) rather than the route, and no tracing of the route itself.
The issue is present when using uvicorn>0.35.0 or uvloop>0.21.0. Possibly relevant changes are:
A full repro is available at https://github.com/tekumara/newrelic-bug
Transactions are not propagating from middleware to the route in FastAPI applications using newer versions of uvicorn or uvloop. This results in the name of the middleware appearing in APM (eg:
WebTransaction/Function/main:CanonicalLogMiddleware) rather than the route, and no tracing of the route itself.The issue is present when using uvicorn>0.35.0 or uvloop>0.21.0. Possibly relevant changes are:
A full repro is available at https://github.com/tekumara/newrelic-bug