Skip to content

Example showing how to pass a tracing header between API Gateways with AWS X-Ray SDK instrumentation using Serverless Framework and Node.js

License

Notifications You must be signed in to change notification settings

aws-samples/aws-xray-multi-api-gateway-tracing-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

AWS X-Ray Multi API Gateway Tracing Example

Example showing how to pass a tracing header between API Gateways with AWS X-Ray SDK instrumentation using Serverless Framework and Node.js

Requirements

  1. Node.js v10.x or greater
  2. AWS CLI Profile

Getting Started

Begin by deploying the infrastructure by running the deploy script.

./deploy.sh

After it has finished deploying, send traffic to the endpoint on service A displayed in your terminal to begin generating traces.

Terminal Output

Then open the traces tab for X-Ray in the AWS Console.

Architecture

Archictecture Reference

Trace Example

Trace Example

Cleanup

Run the cleanup script when you are finished to remove all created resources.

./cleanup.sh

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.

About

Example showing how to pass a tracing header between API Gateways with AWS X-Ray SDK instrumentation using Serverless Framework and Node.js

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published