DataDog 监控 HTTP 调用
我有一个端点,它将提供在 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 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.