Hello everyone,
I have been trying to set up tracing for a java maven spring boot (3.1.2) application using the self managed APM server binary and elastic APM javaagent. Although, I have received necessary trace and span data into my Elasticsearch, but there is no trace graph shown in the Kibana APM UI. Here is what I have tried so far:
Kibana version: 8.6.0
Elasticsearch version: 8.6.0
APM Server version: 8.6.0
APM Agent language and version: Java, 1.52.0 / 1.50.0 (tried with both)
Browser version: Chrome 130.0.6723.117
Fresh install or upgraded from other version?
Fresh install
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.
- No Logstash or Kafka outputs.
- No load balancer in front of the APM Servers.
- Did not change index pattern
- Did not generate custom templates
- Did not change agent configuration
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
After running the spring boot application with the following command:
java -javaagent:/path/to/elastic-apm-agent-1.52.0.jar -Delastic.apm.service_name=apm-server -Delastic.apm.server_url=http://localhost:8200 -Delastic.apm.environment=my-environment -jar demo.jar
I can see from the console of the spring boot application, that the application has connected to the APM Server (see img: 1 in the embedded image).
Now, if I navigate to Observability -> APM -> Services
in Kibana, I can see the service named apm-server
. After few requests to the spring boot application, transactions start to show up as well. But when I click a transaction, the latency distribution box is empty. And there is no trace sample as well. Although Throughput
and Time spent by span type
shows received data (see img: 2, img: 3 in the embedded image).
One error that comes up in the Kibana UI and in the Kibana log upon clicking a transaction can be seen in the embedded image (see img: 4, img: 5 in the embedded image).
Please note that, I have not not set up any agent policy, since it was not mentioned in the below installation guide of APM server binary and javaagent.
Also note that, I have tried the whole thing with 8.12.0 as well. But with no luck
Steps to reproduce:
Everything was installed on the same machine:
- Install Elasticsearch and Kibana on windows
- Follow the below guide to install and configure APM server binary
https://www.elastic.co/guide/en/observability/current/_apm_server_binary.html - Follow the below guide to install and configure javaagent
Manual setup with -javaagent flag | APM Java Agent Reference [1.x] | Elastic
Provide logs and/or server output (if relevant):
Output of /_cat/indices?v
is shown in the embedded image (see img: 6 in the embedded image).
** Embedded image**: