Django Middleware not working on AWS Lambda
未关闭
bug
- 主要语言
- Python
- 星标
- 338
- 派生
- 147
- PR 合并指标
- 30 天内没有已合并 PR
描述
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
贡献指南
调研方向
未指定任何文件或测试。首先使用 SDK 2.4.2 和 Django 2.2.5,通过带有 ELB 的 Zappa 在 Lambda 上重现 Django middleware 的行为,然后将其与 patch_db() 进行比较;完成的标准是 middleware 子分段由 X-Ray 保留,并带有有效的 parent_id,而不是被丢弃。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- aws, django, python
- 领域
- backend, cloud
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100