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" feature of aws x-ray. After you make configuration it is going to be shown on your x-ray traces.

please check for official documentation

Edit: Since you are using java; you may try the example code



来源:https://stackoverflow.com/questions/61299544/tracking-execution-of-lambda

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!