aws / aws/amazon-codeguru-profiler-python-agent
Profiling decorator overrides decorated function's name.
- Vorherrschende Sprache
- Python
- Sterne
- 16
- Forks
- 12
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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
Beitragsleitfaden
Rechercherichtung
Beginne beim Decorator with_lambda_profiler und untersuche, wie er die dekorierte Funktion umschließt. Stelle sicher, dass der Name der ursprünglichen Funktion erhalten bleibt. Führe anschließend die relevanten Projekttests aus und überprüfe, dass das Profiling und der gemeldete Funktionsname weiterhin wie erwartet funktionieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- aws, python
- Bereich
- observability
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100