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
- This feature request meets Powertools for AWS Lambda (Python) Tenets
- Should this be considered in other Powertools for AWS Lambda languages? i.e. Java, TypeScript, and .NET
⚠️ 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!