datadog在请求中未识别资源名称

发布于 2025-02-06 15:39:53 字数 707 浏览 3 评论 0原文

我从Datadog代理开始用于GO应用程序。我正在考虑实施APM跟踪,以确定API请求如何流动和正在触发的功能。

在我当前的应用程序中,我有一条调用另一个功能的路由。这里的最终目标是将路由和功能同时记录为两个独立的资源(此外,将它们记录为跨度图)。但是,当前,只有API调用作为资源记录在DataDog中,但函数调用却没有。

我想做的是在痕迹列表中捕获它们两个,以便它们可以基于特定资源生成可视化(例如:log_func)

我的 main.go file file to上传 https://gith.gith.gith.gith.github.com/baljit92/baljit92/87870f38cf20d.2 e2

我在datadog APM上看到的热。根据屏幕截图,log_func仅出现在跨度列表下,而不出现在轨迹列表下。

I am getting start with DataDog agent for my Go application. I am looking at implementing APM tracing to identify how the API request flows and the functions that are being triggered.

In my current app, I have a route that calls another function. The end goal here is to record both the route and the function as two separate resources (in addition the recording them as a span graph). However, currently, only the API call gets recorded in DataDog as a resource but the function call does not.

What I want to do is capture both of them in the Traces list so that they I can generate visualizations based on specific resources (for example: log_func)

My main.go file is uploaded here https://gist.github.com/baljit92/87870f38cf20df9e2a30f30e4993de48

Here is a screenshot of what I see on Datadog APM. As per the screenshot, log_func only appears under Span List and not under the Traces list.
enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文