public class ZipkinTracer extends Object implements VertxTracer<brave.Span,java.util.function.BiConsumer<Object,Throwable>>
| Modifier and Type | Field and Description |
|---|---|
static brave.propagation.CurrentTraceContext |
DEFAULT_CURRENT_TRACE_CONTEXT |
| Constructor and Description |
|---|
ZipkinTracer(boolean closeTracer,
brave.http.HttpTracing httpTracing) |
ZipkinTracer(boolean closeTracer,
brave.Tracing tracing) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the tracer.
|
static brave.Span |
currentSpan() |
<R> brave.Span |
receiveRequest(Context context,
R request,
String operation,
Iterable<Map.Entry<String,String>> headers,
TagExtractor<R> tagExtractor)
Signal a request has been received and will be processed.
|
<R> void |
receiveResponse(Context context,
R response,
java.util.function.BiConsumer<Object,Throwable> payload,
Throwable failure,
TagExtractor<R> tagExtractor)
Signal a response has been received.
|
<R> java.util.function.BiConsumer<Object,Throwable> |
sendRequest(Context context,
R request,
String operation,
java.util.function.BiConsumer<String,String> headers,
TagExtractor<R> tagExtractor)
Signal a request is sent.
|
<R> void |
sendResponse(Context context,
R response,
brave.Span span,
Throwable failure,
TagExtractor<R> tagExtractor)
Signal the response is sent.
|
public static final brave.propagation.CurrentTraceContext DEFAULT_CURRENT_TRACE_CONTEXT
public ZipkinTracer(boolean closeTracer,
brave.Tracing tracing)
public ZipkinTracer(boolean closeTracer,
brave.http.HttpTracing httpTracing)
public static brave.Span currentSpan()
public <R> brave.Span receiveRequest(Context context, R request, String operation, Iterable<Map.Entry<String,String>> headers, TagExtractor<R> tagExtractor)
VertxTracerreceiveRequest in interface VertxTracer<brave.Span,java.util.function.BiConsumer<Object,Throwable>>context - the context data attached to the requestrequest - the request objectoperation - the request operationheaders - a read-only view of the request headerstagExtractor - the request tag extractorpublic <R> void sendResponse(Context context, R response, brave.Span span, Throwable failure, TagExtractor<R> tagExtractor)
VertxTracersendResponse in interface VertxTracer<brave.Span,java.util.function.BiConsumer<Object,Throwable>>context - the context data attached to the requestresponse - the response sentspan - the payload returned by VertxTracer.receiveRequest(io.vertx.core.Context, R, java.lang.String, java.lang.Iterable<java.util.Map.Entry<java.lang.String, java.lang.String>>, io.vertx.core.spi.tracing.TagExtractor<R>)failure - the failure when not nulltagExtractor - the response tag extractorpublic <R> java.util.function.BiConsumer<Object,Throwable> sendRequest(Context context, R request, String operation, java.util.function.BiConsumer<String,String> headers, TagExtractor<R> tagExtractor)
VertxTracersendRequest in interface VertxTracer<brave.Span,java.util.function.BiConsumer<Object,Throwable>>context - the context data attached to the requestrequest - the request objectoperation - the request operationheaders - a write only-view of the request headerstagExtractor - the request tag extractorpublic <R> void receiveResponse(Context context, R response, java.util.function.BiConsumer<Object,Throwable> payload, Throwable failure, TagExtractor<R> tagExtractor)
VertxTracerreceiveResponse in interface VertxTracer<brave.Span,java.util.function.BiConsumer<Object,Throwable>>context - the context data attached to the requestresponse - the response sentpayload - the payload returned by VertxTracer.sendRequest(io.vertx.core.Context, R, java.lang.String, java.util.function.BiConsumer<java.lang.String, java.lang.String>, io.vertx.core.spi.tracing.TagExtractor<R>)failure - the failure when not nulltagExtractor - the response tag extractorpublic void close()
VertxTracerclose in interface VertxTracer<brave.Span,java.util.function.BiConsumer<Object,Throwable>>Copyright © 2019 Eclipse. All rights reserved.