Class HttpInstrumenterVertxTracer
- java.lang.Object
-
- io.quarkus.opentelemetry.runtime.tracing.intrumentation.vertx.HttpInstrumenterVertxTracer
-
- All Implemented Interfaces:
InstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>,io.vertx.core.spi.tracing.VertxTracer<OpenTelemetryVertxTracer.SpanOperation,OpenTelemetryVertxTracer.SpanOperation>
public class HttpInstrumenterVertxTracer extends Object implements InstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classHttpInstrumenterVertxTracer.HttpRequestSpan
-
Constructor Summary
Constructors Constructor Description HttpInstrumenterVertxTracer(io.opentelemetry.api.OpenTelemetry openTelemetry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R> booleancanHandle(R request, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>getReceiveRequestInstrumenter()io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>getReceiveResponseInstrumenter()io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>getSendRequestInstrumenter()io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>getSendResponseInstrumenter()<R> voidsendResponse(io.vertx.core.Context context, R response, OpenTelemetryVertxTracer.SpanOperation spanOperation, Throwable failure, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)OpenTelemetryVertxTracer.SpanOperationspanOperation(io.vertx.core.Context context, io.vertx.core.spi.observability.HttpRequest request, io.vertx.core.MultiMap headers, io.opentelemetry.context.Context spanContext, io.opentelemetry.context.Scope scope)io.vertx.core.spi.observability.HttpRequestwritableHeaders(io.vertx.core.spi.observability.HttpRequest request, BiConsumer<String,String> headers)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.opentelemetry.runtime.tracing.intrumentation.vertx.InstrumenterVertxTracer
receiveRequest, receiveResponse, sendRequest
-
-
-
-
Method Detail
-
canHandle
public <R> boolean canHandle(R request, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)- Specified by:
canHandlein interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
getReceiveRequestInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse> getReceiveRequestInstrumenter()
- Specified by:
getReceiveRequestInstrumenterin interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
getSendResponseInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse> getSendResponseInstrumenter()
- Specified by:
getSendResponseInstrumenterin interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
getSendRequestInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse> getSendRequestInstrumenter()
- Specified by:
getSendRequestInstrumenterin interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
getReceiveResponseInstrumenter
public io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse> getReceiveResponseInstrumenter()
- Specified by:
getReceiveResponseInstrumenterin interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
spanOperation
public OpenTelemetryVertxTracer.SpanOperation spanOperation(io.vertx.core.Context context, io.vertx.core.spi.observability.HttpRequest request, io.vertx.core.MultiMap headers, io.opentelemetry.context.Context spanContext, io.opentelemetry.context.Scope scope)
- Specified by:
spanOperationin interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
sendResponse
public <R> void sendResponse(io.vertx.core.Context context, R response, OpenTelemetryVertxTracer.SpanOperation spanOperation, Throwable failure, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)- Specified by:
sendResponsein interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>- Specified by:
sendResponsein interfaceio.vertx.core.spi.tracing.VertxTracer<OpenTelemetryVertxTracer.SpanOperation,OpenTelemetryVertxTracer.SpanOperation>
-
writableHeaders
public io.vertx.core.spi.observability.HttpRequest writableHeaders(io.vertx.core.spi.observability.HttpRequest request, BiConsumer<String,String> headers)- Specified by:
writableHeadersin interfaceInstrumenterVertxTracer<io.vertx.core.spi.observability.HttpRequest,io.vertx.core.spi.observability.HttpResponse>
-
-