aws-samples / aws-xray-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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT No Attribution


Languages

Language:JavaScript 87.2%Language:Shell 12.8%