powertools-lambda-dotnet icon indicating copy to clipboard operation
powertools-lambda-dotnet copied to clipboard

Feature request: Add support for Differentiating cached and regular responses in Idempotency for accurate metrics

Open hjgraca opened this issue 10 months ago • 0 comments

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

hjgraca avatar Feb 27 '25 16:02 hjgraca