This repo is designed to compare tracing tools for lambda functions.
This repo currently supports
- aws-xray (src/functions/aws-xray)
- lumigo (src/functions/lumigo)
Packaging and Deployment - Serverless Framework
Function Code - NodeJs Typescript
Unit Tests - Jest
Deploy the Lumigo cloudformation stack Have your Lumigo token saved in an ssm parameter named /lumigo/token Deploy the Dashbird stack
Have an AWS credential provider set up in your CLI
Run sls deploy
Have an AWS credential provider set up in your CLI\
STACK_NAME=$(sls info | grep stack | sed 's/[^ ]* //')
S3_BUCKET=$(aws cloudformation describe-stack-resources --stack-name ${STACK_NAME} --query 'StackResources[?LogicalResourceId==`S3Bucket`].PhysicalResourceId' --output text)
aws s3 rm s3://${S3_BUCKET}/ --recursive
sls remove
Run send-sqs.sh with first input being the number of messages e.g. the following will send 100 messages to the sqs queues
./send-sqs.sh 100