Clarifies configuration in zipkin sample

This commit is contained in:
Adrian Cole
2016-01-25 09:24:54 +01:00
parent d83e0dea3c
commit b6054bfbe4
2 changed files with 10 additions and 4 deletions

View File

@@ -36,8 +36,9 @@ import org.springframework.scheduling.annotation.EnableAsync;
@Slf4j
public class SampleZipkinApplication {
public static final String CLIENT_NAME = "testApp";
/**
* Sleuth will not report trace data unless you define a sampler like below.
*/
@Bean
public Sampler defaultSampler() {
return new AlwaysSampler();

View File

@@ -3,8 +3,13 @@ server:
spring:
application:
name: testSleuthZipkin
# This ends up as the service name in zipkin
name: my-boot
zipkin:
# Uncomment to send to zipkin, replacing 192.168.99.100 with your docker-machine's IP address
# baseUrl: http://192.168.99.100:9411/
sample:
zipkin:
enabled: false
# When enabled=false, traces log to the console. Comment to send to zipkin
enabled: false