Django Middleware not working on AWS Lambda
- Langage dominant
- Python
- Étoiles
- 338
- Forks
- 147
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Aucun fichier ni test n’est nommé. Commencez par reproduire le comportement du middleware Django sur Lambda via Zappa avec ELB, en utilisant SDK 2.4.2 et Django 2.2.5, puis comparez-le à patch_db(); c’est terminé lorsque les sous-segments du middleware sont conservés par X-Ray avec un parent_id valide au lieu d’être supprimés.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- aws, django, python
- Domaine
- backend, cloud
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 30/100