APM Agent language and version : .NET Framework / 1.6.1
I've created a test project with a .NET WCF service (Framework 4.7.1), I can see the ElasticAPM agent auto creates spans for WCF calls but it did not included full trace for the DB call and other http call made withing the service.
I have included below three packages in the project and updated web.config as per instruction.
"Elastic.Apm" version="1.6.1"
"Elastic.Apm.AspNetFullFramework" version="1.6.1"
"Elastic.Apm.EntityFramework6" version="1.6.1"
I enabled the trace and found that the spans are not created, not sure if any additional code is required in WCF service as same setup is working fine in ASP.NET Web application project.
2020-08-31 12:08:09.517 -04:00 | TRACE | 49 | {HttpDiagnosticListenerImplBase} Called with key: System.Net.Http.Desktop.HttpRequestOut.Start
2020-08-31 12:08:09.517 -04:00 | TRACE | 49 | {HttpDiagnosticListenerImplBase} Processing start event... Request URL: https://stage.service.com/product/Product.svc
2020-08-31 12:08:09.531 -04:00 | DEBUG | 49 | {HttpDiagnosticListenerImplBase} No current transaction, skip creating span for outgoing HTTP request
2020-08-31 12:08:09.763 -04:00 | TRACE | 49 | {HttpDiagnosticListenerImplBase} Called with key: System.Net.Http.Desktop.HttpRequestOut.Stop
2020-08-31 12:08:09.763 -04:00 | TRACE | 49 | {HttpDiagnosticListenerImplBase} Processing stop event... Request URL: https://stage.service.com/product/Product.svc
2020-08-31 12:08:09.763 -04:00 | DEBUG | 49 | {HttpDiagnosticListenerImplBase} ProcessStopEvent called with no active current transaction, url: https://stage.service.com/product/Product.svc - skipping event
2020-08-31 12:08:09.772 -04:00 | DEBUG | 49 | {Ef6Interceptor.Impl#67AC83} There no current transaction - skipping starting span for DB-operation-started event
2020-08-31 12:08:09.820 -04:00 | DEBUG | 49 | {Ef6Interceptor.Impl#67AC83} Span is not found in DbCommandInterceptionContext's UserState - skipping ending the corresponding span for DB-operation-ended event
2020-08-31 12:08:09.820 -04:00 | DEBUG | 25 | {ElasticApmModule.#1} Incoming request processing finished - ending trace...
2020-08-31 12:08:09.820 -04:00 | TRACE | 25 | {Transaction} Ended Transaction{Id: c5ae2f7dd504e215, TraceId: 6a1b3fbdc7c3d47da03f8da7a31c1eae, ParentId: null, Name: POST /WcfApmPoc/Service.svc GetData, Type: request, IsSampled: True}. Start time: 2020-08-31 16:08:09.5231290 UTC (as timestamp: 1598890089523129), End time: 2020-08-31 16:08:09.8255670 UTC (as timestamp: 1598890089825567), Duration: 302.438ms