![](/img/trans.png)
[英]Elastic APM Java - Transactions & Spans are recorded but not reported to Elastic APM Server or Kibana
[英]Elastic APM Agent KIbana UI Transactions are NA
终于注意到问题了。
应用程序 API 将服务名称作为引导返回,因为。
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");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.