DataDog 监控 HTTP 调用

发布于 2025-01-16 04:31:26 字数 223 浏览 1 评论 0原文

我有一个端点,它将提供在 X 分钟后过期的令牌。此端点检查现有令牌的验证(无论是否过期)并创建新令牌或发回旧令牌。

我在代码中添加了记录器,以获取获取令牌和获取令牌的时间(以毫秒为单位)。它显示令牌未过期,因此重新调整旧令牌并花费了 1 毫秒。但是,如果我看到 Datadog 跟踪,则处理 http 调用的请求所需的时间接近 500 毫秒。

我们如何分析这种差异。我们可以在 Datadog 中做到吗?

I have one endpoint where it will provide token which expires in X minutes. This endpoint checks validation of existing token(whether expired or not) and creates new or send back old one.

I have added loggers in code to get the time in mill seconds to get the token & it is showing that token not expired so retuned old one and took 1 ms. But if I see the Datadog traces the time taken to process the request is nearly 500 ms for the http call.

How can we analyze this discrepancy. Can we do it in Datadog ?

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

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

发布评论

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

评论(1

晨曦慕雪 2025-01-23 04:31:26

您可以使用 Datadog 综合监控 创建 API 测试,该测试将显示您可以了解有关网络计时等内容的更多信息。有一个创建 API 测试的指南

You can use Datadog Synthetic Monitoring to create API tests that will show you more information about things like network timing. There is a guide to creating an API test.

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