aws / aws/aws-xray-sdk-python

Django Middleware not working on AWS Lambda

オープン
#175 コメント 11 件 リアクション 2 件 担当者 0 名 GitHub で見る
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 のサブセグメントが破棄されず、有効な parent_id とともに X-Ray に保持されることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
aws, django, python
領域
backend, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。