[#69] Added javadocs

fixes #69
This commit is contained in:
Marcin Grzejszczak
2016-02-23 21:16:02 +01:00
committed by Marcin Grzejszczak
parent be1b986bec
commit 3000a4f37d
98 changed files with 539 additions and 221 deletions

View File

@@ -25,6 +25,16 @@ import org.springframework.context.annotation.Import;
import zipkin.server.EnableZipkinServer;
/**
* When enabled, instrumented apps will transport spans over a
* Spring Cloud Stream, for example RabbitMQ.
*
* @author Dave Syer
*
* @since 1.0.0
*
* @see ZipkinMessageListener
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented

View File

@@ -32,6 +32,10 @@ import zipkin.Span.Builder;
/**
* This converts sleuth spans to zipkin ones, skipping invalid or unsampled.
*
* @author Adrian Cole
*
* @since 1.0.0
*/
final class SamplingZipkinSpanIterator implements Iterator<zipkin.Span> {

View File

@@ -40,6 +40,16 @@ import zipkin.Sampler;
import zipkin.Span.Builder;
import zipkin.SpanStore;
/**
* A message listener that is turned on if Sleuth Stream is disabled.
* Asynchronously stores the received spans in a {@link SpanStore}.
*
* @author Dave Syer
*
* @since 1.0.0
*
* @see NotSleuthStreamClient
*/
@MessageEndpoint
@Conditional(NotSleuthStreamClient.class)
public class ZipkinMessageListener {
@@ -77,9 +87,7 @@ public class ZipkinMessageListener {
}
/**
* Creates a list of Annotations that are present in sleuth Span object.
*
* @return list of Annotations that could be added to Zipkin Span.
* Adds binary annotations from the sleuth Span
*/
static void addZipkinBinaryAnnotations(Builder zipkinSpan, Span span,
Endpoint endpoint) {