Open
Description
Use case
I have a nextjs CDK construct with a simple APIGW lambda wrapper around nextjs. I want to annotate my traces with HTTP request and response metadata, e.g. "URL" and "method" and "status code"
I would like to use it here: https://github.com/jetbridge/cdk-nextjs/blob/main/assets/lambda/NextJsHandler.ts#L45
I'd like to see the status code, path, method, etc in xray:
Solution/User Experience
Perhaps something like traceRequestResponseCycle
in https://docs.aws.amazon.com/xray-sdk-for-nodejs/latest/reference/AWSXRay.html
Alternative solutions
Discussed on discord: https://discord.com/channels/1006478942305263677/1006527385409179678/1042309163818168380
Acknowledgment
- This feature request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Python, Java
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog