aws-xray

Tracking execution of lambda

风流意气都作罢 提交于 2020-04-30 07:05:45
问题 I have a lambda that can be executed from various accounts. I wish to track how long the lambda executed for when executed by different accounts. AWS X-ray gives my the duration for which lambda executed by I can't corelate that information to the caller of the lambda function. Is there a way to link the duration of execution of lambda function to caller to the function? 回答1: If you have the parameter(s) to identify the accounts on your lambda function, you may use "Annotations and metadata"

Tracking execution of lambda

我只是一个虾纸丫 提交于 2020-04-30 07:05:18
问题 I have a lambda that can be executed from various accounts. I wish to track how long the lambda executed for when executed by different accounts. AWS X-ray gives my the duration for which lambda executed by I can't corelate that information to the caller of the lambda function. Is there a way to link the duration of execution of lambda function to caller to the function? 回答1: If you have the parameter(s) to identify the accounts on your lambda function, you may use "Annotations and metadata"

XRay Traces not showing up in AWS Console

血红的双手。 提交于 2019-12-25 03:34:09
问题 I've followed the AWS documentation on setting up XRAY for our Spring Boot application deployed on AWS ECS, but I'm not able to see the traces for my services in the AWS Console. Here's a high level view of the changes I've implemented: Added Role with Policy permissions to my EC2 "xray:BatchGetTraces", "xray:GetServiceGraph", "xray:GetTraceGraph", "xray:GetTraceSummaries", "xray:PutTelemetryRecords", "xray:PutTraceSegments" Added Tracing filter @Bean public Filter TracingFilter() { return

aws x-ray tracing breaks on outgoing requests in Node.js

那年仲夏 提交于 2019-12-10 23:08:03
问题 Hey I'm trying to trace outgoing requests from an express app, but I can't get it to work. When I dont use the AWSXRAY.captureHttpsGlobal function everything works fine with incoming requests and I can see my application in "Service Map" and my incoming request traces coming in on AWS, but I want to trace outgoing requests and as soon as I add AWSXRAY.captureHttpsGlobal then nothing works and I get no exception or anything, and my Daemon doesnt print the usual "Successfully sent batch of 1

AWS Lambda@Edge debugging

你。 提交于 2019-12-10 02:52:37
问题 I'm currently working on a lambda@edge function. I cannot find any logs on CloudWatch or other debugging options. When running the lambda using the "Test" button, the logs are written to CloudWatch. When the lambda function is triggered by a CloudFront event the logs are not written. I'm 100% positive that the event trigger works, as I can see its result. Any idea how to proceed? Thanks ahead, Yossi 回答1: 1) Ensure you have provided permission for lambda to send logs to cloudwatch. Below is