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

Profiling decorator overrides decorated function's name.

Open
#51 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.