public class OpenTracingTracer extends Object implements VertxTracer<io.opentracing.Span,io.opentracing.Span>
NOOP| Constructor and Description |
|---|
OpenTracingTracer(boolean closeTracer,
io.opentracing.Tracer tracer)
Instantiate a OpenTracing tracer using the specified
tracer. |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<R> io.opentracing.Span |
receiveRequest(Context context,
SpanKind kind,
TracingPolicy policy,
R request,
String operation,
Iterable<Map.Entry<String,String>> headers,
TagExtractor<R> tagExtractor) |
<R> void |
receiveResponse(Context context,
R response,
io.opentracing.Span span,
Throwable failure,
TagExtractor<R> tagExtractor) |
<R> io.opentracing.Span |
sendRequest(Context context,
SpanKind kind,
TracingPolicy policy,
R request,
String operation,
BiConsumer<String,String> headers,
TagExtractor<R> tagExtractor) |
<R> void |
sendResponse(Context context,
R response,
io.opentracing.Span span,
Throwable failure,
TagExtractor<R> tagExtractor) |
public OpenTracingTracer(boolean closeTracer,
io.opentracing.Tracer tracer)
tracer.closeTracer - close the tracer when necessarytracer - the tracer instancepublic <R> io.opentracing.Span receiveRequest(Context context, SpanKind kind, TracingPolicy policy, R request, String operation, Iterable<Map.Entry<String,String>> headers, TagExtractor<R> tagExtractor)
receiveRequest in interface VertxTracer<io.opentracing.Span,io.opentracing.Span>public <R> void sendResponse(Context context, R response, io.opentracing.Span span, Throwable failure, TagExtractor<R> tagExtractor)
sendResponse in interface VertxTracer<io.opentracing.Span,io.opentracing.Span>public <R> io.opentracing.Span sendRequest(Context context, SpanKind kind, TracingPolicy policy, R request, String operation, BiConsumer<String,String> headers, TagExtractor<R> tagExtractor)
sendRequest in interface VertxTracer<io.opentracing.Span,io.opentracing.Span>public <R> void receiveResponse(Context context, R response, io.opentracing.Span span, Throwable failure, TagExtractor<R> tagExtractor)
receiveResponse in interface VertxTracer<io.opentracing.Span,io.opentracing.Span>public void close()
close in interface VertxTracer<io.opentracing.Span,io.opentracing.Span>Copyright © 2023 Eclipse. All rights reserved.