【问题标题】:DataDog api - sending a stack traceDataDog api - 发送堆栈跟踪
【发布时间】:2016-09-28 23:05:43
【问题描述】:

我正在用 DataDog 替换我们现有的 NewRelic java 支持代码,并且想知道发送错误消息。 NewRelic 有.noticeEvent() 电话。我使用的DDog library 有一个.recordEvent(),但似乎没有办法发送堆栈跟踪。

以前有人走过这条路吗?我可以通过上述方式发送文本,但我需要更多信息。

【问题讨论】:

    标签: java newrelic datadog


    【解决方案1】:

    我不熟悉您使用的产品和库,但是有一个开源库 MgntUtils 可以从异常中提取完整或过滤的堆栈跟踪作为字符串。既然你提到你可以传递文本(即字符串),这个库可能会对你有所帮助。以下是 MgntUtils 库的链接:

    1. https://www.linkedin.com/pulse/open-source-java-library-some-useful-utilities-michael-gantman?trk=pulse_spock-articles 详细的文章解释了 MgntUtils 库中有哪些实用程序以及如何使用它们
    2. http://search.maven.org/#search%7Cga%7C1%7Cmichaelgantman - 在这里您可以将其作为 Maven 资源(也可作为单独资源使用的库、源代码和 Javadoc)
    3. Github:https://github.com/michaelgantman/Mgnt - 在这里您可以将这个库作为一个 git 项目以及用于库本身、源代码和 javadoc 的 Jars(每个都在单独的 jar 中)获取

    希望对你有帮助

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-02-24
      • 2011-05-19
      • 1970-01-01
      • 2021-06-12
      • 1970-01-01
      • 2018-02-03
      • 2011-05-25
      • 2011-05-13
      相关资源
      最近更新 更多