Skip to content

A simple demo app to show how AWS X-Ray instrumentation works with Node.JS 12 with HTTP and AWS SDK calls.

Notifications You must be signed in to change notification settings

marekq/aws-lambda-xray-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-lambda-xray-node

A demo app to show how AWS X-Ray instrumentation works with Node.JS 12 with HTTP and AWS SDK calls. The stack creates an API GW, Node.JS Lambda to handle requests, a Lambda Layer containing X-Ray and other libraries and a DynamoDB table to store results.

The HTTP and DynamoDB requests will be traced from the X-Ray console;

alt text

You can also see the individual traces for PUT and GET requests to DynamoDB (shown for a 256MB Lambda function below).

GET requests to /get path

alt text

PUT requests to /put path

alt text

You can query the API through the browser or CLI

alt text

You can deploy the app to your AWS account using the AWS SAM CLI. Run 'sam build' and 'sam deploy -g' in the directory. After the deployment, the API Gateway URL you can query with curl or your browser is shown.

About

A simple demo app to show how AWS X-Ray instrumentation works with Node.JS 12 with HTTP and AWS SDK calls.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published