Profiling decorator overrides decorated function's name.
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- aws, python
- Domain
- observability
Research direction
Start at the with_lambda_profiler decorator and inspect how it wraps the decorated function. Confirm that the original function name is preserved, then run the relevant project tests and verify that profiling and the reported function name still work as expected.
Written by the indexing model from the issue text.
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:
The fix is minor, so I'll just create a PR for it here now.
Thanks
- Dominant language
- Python
- Stars
- 16
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws/amazon-codeguru-profiler-python-agent
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
aws/amazon-codeguru-profiler-python-agent#62 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
aws/amazon-codeguru-profiler-python-agent#47 · 3 reactions ·
All issues in aws/amazon-codeguru-profiler-python-agent
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100