public class OpenTracingTracer extends Object implements io.vertx.core.spi.tracing.VertxTracer<io.opentracing.Span,io.opentracing.Span>
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(io.vertx.core.Context context,
io.vertx.core.spi.tracing.SpanKind kind,
io.vertx.core.tracing.TracingPolicy policy,
R request,
String operation,
Iterable<Map.Entry<String,String>> headers,
io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor) |
<R> void |
receiveResponse(io.vertx.core.Context context,
R response,
io.opentracing.Span span,
Throwable failure,
io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor) |
<R> io.opentracing.Span |
sendRequest(io.vertx.core.Context context,
io.vertx.core.spi.tracing.SpanKind kind,
io.vertx.core.tracing.TracingPolicy policy,
R request,
String operation,
BiConsumer<String,String> headers,
io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor) |
<R> void |
sendResponse(io.vertx.core.Context context,
R response,
io.opentracing.Span span,
Throwable failure,
io.vertx.core.spi.tracing.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(io.vertx.core.Context context, io.vertx.core.spi.tracing.SpanKind kind, io.vertx.core.tracing.TracingPolicy policy, R request, String operation, Iterable<Map.Entry<String,String>> headers, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)
receiveRequest
in interface io.vertx.core.spi.tracing.VertxTracer<io.opentracing.Span,io.opentracing.Span>
public <R> void sendResponse(io.vertx.core.Context context, R response, io.opentracing.Span span, Throwable failure, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)
sendResponse
in interface io.vertx.core.spi.tracing.VertxTracer<io.opentracing.Span,io.opentracing.Span>
public <R> io.opentracing.Span sendRequest(io.vertx.core.Context context, io.vertx.core.spi.tracing.SpanKind kind, io.vertx.core.tracing.TracingPolicy policy, R request, String operation, BiConsumer<String,String> headers, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)
sendRequest
in interface io.vertx.core.spi.tracing.VertxTracer<io.opentracing.Span,io.opentracing.Span>
public <R> void receiveResponse(io.vertx.core.Context context, R response, io.opentracing.Span span, Throwable failure, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)
receiveResponse
in interface io.vertx.core.spi.tracing.VertxTracer<io.opentracing.Span,io.opentracing.Span>
public void close()
close
in interface io.vertx.core.spi.tracing.VertxTracer<io.opentracing.Span,io.opentracing.Span>
Copyright © 2022 Eclipse. All rights reserved.