aws / aws/amazon-codeguru-profiler-python-agent
Profiling decorator overrides decorated function's name.
- Lingua principale
- Python
- Stelle
- 16
- Fork
- 12
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Hi all,
Found a small issue that has been bothering me for a while, so finally took the time to create an issue + PR.
When you use the `with_lambda_profiler` decorator, it overrides the name of the function with `profiler_decorate`. Normally this isn't very visible, but if you are using XRay as well, it becomes painfully obvious, as per this screenshot:

The fix is minor, so I'll just create a PR for it here now.
Thanks
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia dal decoratore with_lambda_profiler e verifica come esegue il wrapping della funzione decorata. Conferma che il nome della funzione originale venga preservato, quindi esegui i test pertinenti del progetto e verifica che il profiling e il nome della funzione riportato continuino a funzionare come previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- aws, python
- Ambito
- observability
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100