获取状态机执行对应的lambda日志流
可以通过日志事件中的 execution_arn
字段在 cloudwatch 中轻松查询特定执行的状态机日志。
但是,我如何找出 LAMBDA 函数的哪些日志/日志流对应于哪个状态机执行?到目前为止我还没有发现任何联系。理想情况下,当从 stepfunctions 调用时,我希望在 lambda 日志中找到一个 execution_arn
字段。
statemachine logs for a specific execution can be easily queried in cloudwatch via the execution_arn
field in the log events.
However how can i find out which logs/logstreams of the LAMBDA functions correspond to which statemachine execution? I haven't found any connection so far. Ideally i would have expected to find an execution_arn
field also in the lambda logs when called from stepfunctions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有任何联系。不过,您可以通过在输入负载中包含执行 ARN 并将其记录在 Lambda 中,手动将 Lambda 日志与状态机执行关联起来。执行 ARN 在状态机 上下文上可用对象:
There is no connection. You can, however, manually associate your Lambda logs with a State Machine execution by including the execution ARN in your input payload and logging it in Lambda. The execution ARN is available on the State Machine context object: