gpt4 book ai didi

amazon-web-services - AWS SAM X 射线追踪 : Active vs PassThrough

转载 作者:行者123 更新时间:2023-12-03 18:28:57 25 4
gpt4 key购买 nike

Active有什么区别和 PassThroughTracing AWS::Serverless::Function 的参数?

PassThrough默认值?

最佳答案

documentation of the Tracing parameter for AWS::Serverless:Function 链接到解释如何将 AWS X-Ray 与 AWS Lambda 结合使用的页面。不幸的是that page根本没有说明有关跟踪模式的任何内容,因此它可能只是链接到错误的页面。

正确的页面是 AWS Lambda 的 API 文档,它解释了 purpose of the TracingConfig 是:

Mode

Can be either PassThrough or Active. If PassThrough, Lambda will only trace the request from an upstream service if it contains a tracing header with "sampled=1". If Active, Lambda will respect any tracing header it receives from an upstream service. If no tracing header is received, Lambda will call X-Ray for a tracing decision.

Type: String

Valid Values: Active | PassThrough

Required: No

关于amazon-web-services - AWS SAM X 射线追踪 : Active vs PassThrough,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50077890/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com