aws-powertools/powertools-lambda-python

Feature request: allow setting functionName via constructor parameter and environment variable

Closed this issue · 2 comments

Use case

Original issue: aws-powertools/powertools-lambda-typescript#3696

I would like to use a new parameter in the Metrics constructor and specify an alternative function name. Also, this would be available via a new ENV VAR.

This would allow for names to be more static since CDK may sometimes replaces functions and the trailing characters are random.

Solution/User Experience

Change the constructor and add a new environment variable

Alternative solutions

Acknowledgment

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

This is now released under 3.9.0 version!