title: Customize spring-boot jaeger auto-configuration
body: <p>I'm working on a POC and was able to integrate 2 microservices with JaegerUI.</p>
  <p>Request to an endpoint in serviceA calls an endpoint in serviceB and returns a response.</p>
  <p>I have used below dependencies:</p>
  <p>spring.boot.version : 2.1.4.RELEASE</p>
  <pre><code>&lt;groupId&gt;io.opentracing.contrib&lt;/groupId&gt;
              &lt;artifactId&gt;opentracing-spring-jaeger-web-starter&lt;/artifactId&gt;
              &lt;version&gt;3.1.1&lt;/version&gt;
  
   &lt;groupId&gt;io.opentracing.contrib&lt;/groupId&gt;
          &lt;artifactId&gt;opentracing-spring-cloud-starter&lt;/artifactId&gt;
          &lt;version&gt;0.4.0&lt;/version&gt;
  </code></pre>
  <p>Spring autoconfiguration takes care of everything so just added the required properties:</p>
  <pre><code>opentracing.jaeger.http-sender.url
  
  opentracing.jaeger.service-name
  
  opentracing.jaeger.enabled
  
  opentracing.spring.cloud.async.enabled
  </code></pre>
  <p>I want to achieve the below:</p>
  <ol>
  <li>I want to add application logs to the span so that they are visible in JaegerUI.</li>
  <li>I want to add some fields to span tags so that it's easy to search in JaegerUI.</li>
  <li>Also, I want the spanId and traceId to the application log.</li>
  <li>Is it possible to search in JaegerUI based on spanId/traceId? If yes, how?</li>
  </ol>
  <p>Based on the answer in below SO question:</p>
  <p><a href="https://stackoverflow.com/questions/50855480/how-to-enrich-jaeger-opentracing-data-with-the-application-logs-produced-by-slf">How to enrich Jaeger opentracing data with the application logs (produced by slf4j) for Spring Boot?</a></p>
  <p>opentracing-spring-cloud-starter dependency should automatically take care of sending app logs to span in JaegerUI.</p>
  <p>I have a log statement like below in serviceA:</p>
  <p>logger.info(&quot;sending request to serviceB.&quot;);</p>
  <p>But above log is not getting captured in corresponding span and not visible in JaegerUI.</p>
  <p>Any suggestions on how to achieve the above scenarios are appreciated!</p>