Open
Description
I tried to use the Django middleware with an app deployed on Lambda (using Zappa with ELB, not API Gateway) but it’s not working. If the middleware is enabled, the subsegments are sent to the Lambda X-Ray Daemon but they are discarded because the parent_id is not good (according to AWS Support & AWS X-Ray teams).
Without the middleware, it is possible to use patch_db() to get the SQL queries inside X-Ray.
SDK Version: 2.4.2
Django Version: 2.2.5