aws / aws/amazon-codeguru-profiler-python-agent

Profiling decorator overrides decorated function's name.

オープン
#51 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
16
フォーク
12
PR マージ指標
30日以内にマージされた PR はありません

説明

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:

![Cursor_and_CloudWatch___us-west-2](https://github.com/aws/amazon-codeguru-profiler-python-agent/assets/700257/6aa5e32c-2021-4434-b201-1a1649da370c)

The fix is minor, so I'll just create a PR for it here now.

Thanks

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

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

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