[{"data":1,"prerenderedAt":69},["ShallowReactive",2],{"pattern-sns-sqs-lambda-xray":3},{"id":4,"title":5,"architectureURL":6,"cleanup":7,"contributors":10,"deploy":12,"description":15,"extension":16,"framework":17,"gitHub":18,"highlight":6,"introBox":24,"language":29,"level":30,"meta":31,"patternArch":32,"resources":56,"s3URL":6,"services":6,"stem":64,"testing":65,"videoId":6,"__hash__":68},"patterns\u002Fpatterns\u002Fsns-sqs-lambda-xray.json","AWS X-Ray trace for Amazon SNS to Amazon SQS to AWS Lambda with AWS Powertools",null,{"text":8},[9],"Delete the stack: \u003Ccode>sam delete\u003C\u002Fcode>.",[11],"content\u002Fcontributors\u002Fthanit-youruchatangern.json",{"text":13},[14],"sam deploy","How to use an AWS SAM template and Powertools for AWS Lambda to capture and propagate Amazon X-Ray trace.","json","AWS SAM",{"template":19},{"repoURL":20,"templateURL":21,"projectFolder":22,"templateFile":23},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-patterns\u002Ftree\u002Fmain\u002Fsns-sqs-lambda-xray","serverless-patterns\u002Fsns-sqs-lambda-xray","sns-sqs-lambda-xray","template.yaml",{"headline":25,"text":26},"How it works",[27,28],"The template deploys two Lambda functions, Producer and Consumer, SNS, SQS. The calling sequence is Lambda Producer -> SNS -> SQS -> Lambda Consumer.","The whole process flow is captured by X-Ray and displayed with Amazon CloudWatch X-Ray traces","Python","200",{},{"icon1":33,"icon2":38,"icon3":42,"icon4":46,"line1":48,"line3":52,"line2":55},{"x":34,"y":35,"service":36,"label":37},15,50,"lambda","AWS Lambda",{"x":39,"y":35,"service":40,"label":41},40,"sns","Amazon SNS",{"x":43,"y":35,"service":44,"label":45},65,"sqs","Amazon SQS",{"x":47,"y":35,"service":36,"label":37},90,{"from":49,"to":50,"label":51},"icon1","icon2","",{"from":53,"to":54,"label":51},"icon3","icon4",{"from":50,"to":53,"label":51},{"bullets":57},[58,61],{"text":59,"link":60},"Powertools for AWS Lambda (Python) - Tracer","https:\u002F\u002Fdocs.powertools.aws.dev\u002Flambda\u002Fpython\u002Flatest\u002Fcore\u002Ftracer\u002F",{"text":62,"link":63},"Monitor Amazon SNS based applications end-to-end with AWS X-Ray active tracing","https:\u002F\u002Faws.amazon.com\u002Fblogs\u002Fcompute\u002Fmonitor-amazon-sns-based-applications-end-to-end-with-aws-x-ray-active-tracing\u002F","patterns\u002Fsns-sqs-lambda-xray",{"text":66},[67],"See the GitHub repo for detailed testing instructions.","45THOhu51Jb_CAESJOW3pqSLNGHhFQZ5Czhxb-BFN9M",1780515002275]