Closed gquintana closed 5 years ago
Hi and thanks for the bug report. Could you upload/link to your test application?
Sample project: mvn install to build then use esapm-*.sh scripts to run esapm-demo.zip
Sample trace obtained with this app
@gquintana please explain more about the expected behaviour -
esapm-front: EsApmFrontApplication#callHome
esapm-front: GET localhost
esapm-front: GET
esapm-front: GET localhost
esapm-back: EsApmBackApplication#call
esapm-back: GET
I don't know what to relate some of those to. Is this a behaviour you get with another OpenTracing implementation for this same app?
What I would expect, just from the app code, is to get a Transaction for the entry point at each tier (front and back) and a span for the outgoing HTTP request, so I would expect something like:
esapm-front: EsApmFrontApplication#callHome
esapm-front: GET
esapm-back: EsApmBackApplication#home
What am I missing here?
@eyalkoren Your expectation are right.
@gquintana please set the instrument
config option to false
(to deactivate automatic agent instrumentation and get only the Spring Cloud OpenTracing stuff). In addition, you will have to use this snapshot: elastic-apm-agent-1.3.1-SNAPSHOT.jar.zip, or wait to next release, as there was a small fix needed to be done in this regard.
This is what I get when testing your application with it:
I hope this will produce satisfactory results.
@gquintana I am closing this issue for now. Next version will contain two fixes in this regard. In addition, the requirement is to disable our instrumentation through the configuration described above when relying entirely on OpenTracing APIs. If something still doesn't seem right, please just reopen or let us know otherwise. Thanks for the great input!
Describe the bug Trying to use Spring Cloud OpenTracing with Elastic APM as OpenTracing backend.
Traces shown in Kibana do not clearly reflect reality.
To Reproduce
Two SpringBoot apps with Spring Cloud OpenTracing and Elastic APM bridge. The esapm-front application calls esapm-back application using a RestTemplate.
Expected behavior
Trace shown in Kibana is:
I would expect something like:
Debug logs
Front app
Back app