Elastic APM Agent KIbana UI 事务为 NA

Elastic APM Agent KIbana UI Transactions are NA

我们新引入了弹性 APM 来监控应用程序性能。部署后,我们遇到了 Kibana APM UI 的问题,它没有显示少数服务的任何交易。

我们在 APM 索引中有数据,但 Kibana APM 仪表板中没有显示交易 UI 我们得到 Avg.response 时间 N/A 和 Trans.per 分钟是 0.

APM 服务器 7.6.1 弹性代理 - 1.15.0 麋鹿堆栈 - 7.6.1

请帮我解决这个问题。

提前致谢。

终于注意到问题了。

应用程序 API 返回服务名称 Bootstrap 因为。

in the Response Headers we are getting bootstrapp {
  "Content-Type": "application/json;charset=UTF-8",
  "Date": "Fri, 10 Apr 2020 20:01:37 GMT",
  "Server": "Jetty(9.2.13.v20150730)",
  "Transfer-Encoding": "chunked",
  "X-Application-Context": "bootstrap:31144"
}

public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }

未设置 ID,因此它使用默认值

Id可以这样设置

public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args).setId("the text that you want to see int the header");
    }