Skip to content

Sample to send a trace segment and subsegments to AWS X-Ray via NodeJS

License

Notifications You must be signed in to change notification settings

fortejas/x-ray-sample-node-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample - Send AWS X-Ray Traces locally with NodeJS

Starting the X-Ray Daemon

Install the AWS X-Ray daemon as documented here.

Run the X-Ray daemon using the following arguments:

$ ./xray -b 0.0.0.0:2000 -t 0.0.0.0:2000 -o -l dev -n <your region>

Testing X-Ray traces via NodeJS

Ensure that you have an IAM environment that allows sending to X-Ray. Configure via the AWS CLI by running aws configure.

Run the test as follows:

$ npm i
$ npm run test

About

Sample to send a trace segment and subsegments to AWS X-Ray via NodeJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published