Float.valueOf(applicationProperties.getProperty("spring.sleuth.sampler.percentage", "1.0")))) .reporter(AsyncReporter.builder(URLConnectionSender.builder().endpoint( applicationProperties.getProperty("spring.zipkin.baseUrl", DEFAULT_ZIPKIN_HOSTNAME)).build()) .build()).build();
/** Creates a sender that posts {@link Encoding#JSON} messages. */ public static URLConnectionSender json(String endpoint) { return builder().encoding(Encoding.JSON).endpoint(endpoint).build(); }
/** Creates a sender that posts {@link Encoding#THRIFT} messages. */ public static URLConnectionSender create(String endpoint) { return builder().endpoint(endpoint).build(); }
public static Brave brave(String serviceName) { return new Brave.Builder(serviceName) .traceSampler(Sampler.ALWAYS_SAMPLE) .reporter(AsyncReporter.builder(URLConnectionSender.builder() .endpoint("http://docker-machine.dev:8080/api/v1/spans") .build()).build()) .build(); } }