如何将生成的轨迹发送到Opentelemetry收集器?

发布于 2025-02-12 14:48:53 字数 84 浏览 1 评论 0 原文

我已经启动了代码来生成轨迹并将其打印在终端中。现在,如何在Opentelemetry收集器中接收它们以将其导出到Newrelic?使用的语言:Golang

I have instrumented the code to generate traces and print them in the terminal. Now, how do I receive them in OpenTelemetry Collector to export them to NewRelic? Language used: Golang

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

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

发布评论

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

评论(1

走过海棠暮 2025-02-19 14:48:53

根据您可以简单地配置 otlp grpc grpc grpc exporter 在与 https://otlp.nr-data.net 作为终点。也在标题中的API键。

或者,

您可以将运行的OpenTelemetry集合器作为单独的服务,而NewRelic作为出口商。

As per the New Relic Docs you can simply configure the OTLP gRPC exporter in Go code with https://otlp.nr-data.net as endpoint. Also API Key in header.

Or

You can use an Opentelemetry collector running as a separate service with NewRelic as exporter. sample config

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