Updated Zipkin Properties with Javadocs

This commit is contained in:
Marcin Grzejszczak
2017-07-21 11:39:21 +02:00
parent cbbb3c2a40
commit e76be78512

View File

@@ -33,9 +33,21 @@ public class ZipkinProperties {
* service discovery (e.g. http://zipkinserver/)
*/
private String baseUrl = "http://localhost:9411/";
/**
* Enables sending spans to Zipkin
*/
private boolean enabled = true;
/**
* Interval in seconds in which spans will be sent in batches to Zipkin
*/
private int flushInterval = 1;
/**
* Encoding type of spans sent to Zipkin
*/
private Encoding encoding = Encoding.JSON;
/**
* Configuration related to compressions of spans sent to Zipkin
*/
private Compression compression = new Compression();
private Service service = new Service();
@@ -127,6 +139,11 @@ public class ZipkinProperties {
}
}
/** Configuration related to locating of the host name from service discovery.
* This property is NOT related to finding Zipkin via Service Disovery.
* To do so use the {@link ZipkinProperties#baseUrl} property with the
* service name set inside the URL.
*/
public static class Locator {
private Discovery discovery;