committed by
Marcin Grzejszczak
parent
be1b986bec
commit
3000a4f37d
@@ -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
|
||||
|
||||
@@ -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> {
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user