Sleuth not sending trace information to Zipkin

If you are exporting all the span data to Zipkin, sampler can be installed by creating a bean definition in the Spring boot main class

  @Bean
  public Sampler defaultSampler() {
    return new AlwaysSampler();
  }

For the latest version of cloud dependencies <version>Finchley.SR2</version>
The correct property to send traces to zipkin is: spring.sleuth.sampler.probability=1.0 Which has changed from percentage to probability.


I found that I need to add a sampler percentage. By default zero percentage of the samples are sent and that is why the sleuth was not sending anything to zipkin. when I added spring.sleuth.sampler.percentage=1.0 in the properties files, it started working.