aws / aws/aws-xray-sdk-python

Django Middleware not working on AWS Lambda

Aperta
#175 11 commenti 2 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
338
Fork
147
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

No files or tests are named. Start by reproducing the Django middleware behavior on Lambda through Zappa with ELB, using SDK 2.4.2 and Django 2.2.5, then compare it with patch_db(); done means middleware subsegments are retained by X-Ray with a valid parent_id instead of being discarded.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
aws, django, python
Ambito
backend, cloud
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.