Search code examples
spring-cloudzipkinspring-cloud-sleuth

Spring cloud sleuth with Webservicetemplate


Does Spring cloud sleuth support WebserviceTemplate? I mean - I have a service which makes 2 service calls - One using RestTemplate and another using Webservicetemplate. The Rest call is getting displayed in Zipkin and the Soap call using Webservicetemplate is not. Do I have to add @NewSpan to all my soap calls ? Is it not automatically done like Resttemplate?


Solution

  • No - we haven't added any instrumentation around Webservicetemplate. You'd have to add an interceptor similar to the one we add for RestTemplate. You'd have to pass all the tracing headers to the request so that the other side can properly parse it.