![](/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.