Distributed tracing not working with elastic APM using Netflix Eureka registry server
See original GitHub issueDistributed tracing not working with elastic APM using Netflix Eureka registry server
We follow micro service architecture where all the services registered it self in Netflix eureka registry server, in-order to make inter-service call with each other. All the micro services are springboot projects. we have installed elastic search( version : 6.6.0), kibana (version : 6.6.0), elastic APM (version : 6.6.0) and we started all the springboot application using elastic-apm-agent (version : 1.3.0) java agent.
When one service makes call to other service the trace is not being captured only the calling service SQL query performance is getting captured.
To Reproduce Steps to reproduce the behavior:
- Create a P0 (spring boot application) to Enable EurekaServer (which acts like discovery server)
- Created P1 and P2 (spring boot application) registered with eureka discover service.
- Installed elastic search (version : 6.6.0),kibana (version : 6.6.0), elstic APM (version : 6.6.0) in different servers made all the configurations and started all of them.
- Started P0,P1,P2 with elastic-apm java agent ( version : 1.3.0).
- Created an Rest API in P1, That makes a call to P2’s Rest API using @FeignClient.
API created an (ie A1) in P1 will do some CRUD operations then makes call to P2 API (ie, A2).
Error: We are able to see the SQL query performance of A1 in in elastic APM but we are unable to see A1->A2 call trace in APM
Expected behavior Time taken buy the A1-> A2 call should be shown in the APM console
Debug logs Attach your debug logs. See the documentation about how to enable debug logging.
Click to expand
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
@eyalkoren , Sorry for the delayed response. I was caught up with multiple tasks.
Feign client internally uses okhttpclient. Distributed tracing is working properly with elastic-apm-agent-1.4.0.jar .
Thanks for the support.
Looks like there was a failure sending data to the APM server ("server-side-error.log). A full log would be better and APM server log can be useful as well. Note that most stack traces you see now are not errors but related to the fact you set the log level to TRACE.
Did you try to figure out what your Feign client is using for making the actual HTTP requests? Is there any configuration you made that may indicate that? This is very important information for analysing distributed tracing issues.