Use AWS X-Ray to trace and inspect the entire processing flow of API Gateway → Lambda → DynamoDB.
X-Ray helps visualize traces, latency, errors, and segments/subsegments to ensure the API behaves correctly and efficiently.










In the Test tab, click Create new event
Event name: test
Paste the JSON below into the event:
{
"resource": "/{myProxy+}",
"path": "/api/v1/bird-types",
"httpMethod": "GET",
"headers": {},
"multiValueHeaders": {},
"queryStringParameters": {},
"multiValueQueryStringParameters": {},
"pathParameters": {},
"stageVariables": {},
"requestContext": {
"identity": {}
},
"body": null,
"isBase64Encoded": false
}
Save -> Test
Next, go to AWS Console → X-ray

In tab Traces, a new trace ID will appear

Click it to view detailed trace information
