Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
leandrodamascena opened this issue Mar 20, 2025 · 2 comments · Fixed by #6315
Closed
2 tasks done
Assignees
Labels

Comments

@leandrodamascena
Copy link
Contributor

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

Copy link
Contributor

⚠️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.

@github-actions github-actions bot added the pending-release Fix or implementation already in dev waiting to be released label Mar 20, 2025
Copy link
Contributor

This is now released under 3.9.0 version!

@github-actions github-actions bot removed the pending-release Fix or implementation already in dev waiting to be released label Mar 25, 2025
@leandrodamascena leandrodamascena moved this from Coming soon to Shipped in Powertools for AWS Lambda (Python) Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Shipped
1 participant