APM Agent language and version: Elastic.Apm.AspNetCore@1.10.0
Browser version: Chrome 91.0.4472.77
Original install method (e.g. download page, yum, deb, from source, etc.) and version:
Fresh install or upgraded from other version?
Fresh install
Is there anything special in your setup?
Default configurations.
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
I have two dotnet webapi services. Service1 calls Service2 via REST using the default HttpClient. Both of the requests to individual services can be found from APM section of kibana. However, full trace is not shown for the first request. In other words, I can not see that Service1 called Service2 in the request lifecycle.
There's a couple of things that need to be addressed for this to work:
The service name for TracingService2 should be TracingService2 (or something else, but different from TracingService1). It's set to the same service name as TracingService1 in the example:
The APM agent is not configured to trace HTTP calls. The HttpDiagnosticsSubscriber needs to passed to app.UseElasticApm(Configuration, <subscribers here>) in at least TracingService1, though you probably want to trace HTTP calls in both services, so add it to both in
and
i.e.
app.UseElasticApm(Configuration, new HttpDiagnosticsSubscriber());
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.