title: Configuring Jaeger in Spring application
body: <p>I would like to configure Jaeger in my Spring application. Somehow I cannot find a proper way to do this. Almost all Spring-Jaeger-related documentation is for Spring Boot where most of the properties are auto configured. Here's my approach. 
  Maven dependency:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;io.opentracing.contrib&lt;/groupId&gt;
          &lt;artifactId&gt;opentracing-spring-jaeger-cloud-starter&lt;/artifactId&gt;
          &lt;version&gt;1.0.3&lt;/version&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Spring config for Jaeger:</p>
  
  <pre><code>@Configuration
  public class JagerConfiguration {
  
  
      @Bean
      public io.opentracing.Tracer jaegerTracer() {
          Map&lt;String, String&gt; tags = new HashMap&lt;&gt;();
          tags.put(Constants.TRACER_HOSTNAME_TAG_KEY, "localhost");
  
          CompositeReporter reporter = new CompositeReporter(new LoggingReporter(), remoteReporter());
  
  
          return new Builder("myTestSpringApp")
                  .withSampler(new ConstSampler(true))
                  .withMetricsFactory(new InMemoryMetricsFactory())
                  .withReporter(remoteReporter())
                  .withTags(tags)
                  .build();
      }
  
      @Bean
      public RemoteReporter remoteReporter() {
          return new RemoteReporter.Builder().withSender(new UdpSender("localhost", 6831, 0)).build();
      }
  }
  </code></pre>
  
  <p>Jaeger is running locally in docker on port 6831.</p>
  
  <pre><code>docker run -d -p6831:6831/udp -p16686:16686 jaegertracing/all-in-one:latest
  </code></pre>
  
  <p>Once my application starts, I noticed that application slows down considerably, I assume that is because of metrics logged heavily to console by LoggingReporter. </p>
  
  <p>However, My Spring app does not show up in Jaeger UI. In the beginning I would like to trace my REST endpoints. Can someone point me in the right direction why my app is missing from UI and how I configure Jaeger properly? Is there perhaps a sample project with Spring+Jaeger that does not rely on outdated Jaeger? </p>