在AWS X射线上,停止在ECS上的Docker容器中运行的节点API上追踪特定路径

发布于 2025-02-09 17:42:56 字数 492 浏览 2 评论 0原文

我在ECS上的Docker容器中有一个节点API。我正在使用X射线来追踪传入请求。

我想指示X射线不要在我的节点API上追踪特定的API端点。这可能吗?

API端点是:

/api/upload/directUploadConfirmation

我不希望通过X射线追踪的端点。

我尝试的

我试图通过X射线控制台创建一个采样规则。我想欺骗并查看此参数URL,每秒捕获0请求。但是该计划之所以失败,是因为它不接受0,数字必须大于或等于1。

“添加image”

I have a Node API running inside a docker container on ECS. I am using X-Ray to trace incoming requests.

I would like to instruct x-ray to not trace a particular API end-point on my Node API. Is this possible?

The API endpoint is:

/api/upload/directUploadConfirmation

I do not want that end-point traced via X-Ray.

What I have tried

I tried to create a sampling rule via the X-Ray console. I wanted to cheat and see for this paritular URL, capture 0 requests per second. But that plan failed because it doesn't accept 0, the number has to be greater than or equal to 1.

added image

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沫离伤花 2025-02-16 17:42:56

编辑:从那以后,CloudWatch控制台团队在生产中修复了这一点。感谢您找到这个问题!

=============================================== ============= =

仅确认,您是否使用 x - node.js ray sdk?如果是的话,请随时在那里打开一个问题,以便熟悉SDK的人也可以帮助您回答您的问题!

否则,我能够使用0 Reservoir size和0 固定价格创建一个采样规则。下面是一张图片,显示如何到达X射线控制台创建此版本。

”选项“ rel =“ nofollow noreferrer”> AWS文档列出了几个可以使用,包括,包括 url path。此选项在APIGW中不可用,但应在您提到的EC中可用。在我的图像中,我正在使用它将输出请求过滤为url路径 /foo/bar

但是该计划失败了,因为它不接受0,数字必须大于或等于1。

您能确认在哪里看到它不接受0吗?基于此,我可以尝试复制您的设置,看看是否遇到了同样的问题。

谢谢!

EDIT: The CloudWatch console team has since fixed this in production. Thanks for finding this issue!

=============================================================

Just to confirm, are you using the X-Ray SDK for Node.JS? If you are, feel free to open an issue there so people familiar with the SDK can help answer your question too!

Otherwise, I was able to create a sampling rule with 0 Reservoir Size and 0 Fixed Rate. Below is a picture showing how to get to the X-Ray console to create this.

X-Ray console for creating a sampling rule

The AWS documentation lists several Sampling options that you can use including URL Path. This option is not available in APIGW, but should be available in ECS which you mentioned you are using. In my image I am using that to filter output requests to URL Path /foo/bar.

But that plan failed because it doesn't accept 0, the number has to be greater than or equal to 1.

Can you please confirm where you saw it fail to accept 0? Based on that I can try to replicate your setup and see if I get the same issue.

Thanks!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文