powertools-lambda-dotnet
powertools-lambda-dotnet copied to clipboard
Feature request: Add support for Differentiating cached and regular responses in Idempotency for accurate metrics
Use case
Manipulating the Idempotent Response Python docs This allows to differentiate between regular and cached responses.
Java issue #1780
Solution/User Experience
You can set up a response_hook in the IdempotentConfig class to manipulate the returned data when an operation is idempotent. The hook function will be called with the current deserialized response object and the Idempotency record.
Alternative solutions
Acknowledgment
- [x] This feature request meets Powertools for AWS Lambda (.NET) Tenets
- [x] Should this be considered in other Powertools for AWS Lambda languages? i.e. Python, Java, and TypeScript