Interface InstrumenterVertxTracer<REQ,RESP>

All Superinterfaces:
io.vertx.core.spi.tracing.VertxTracer<OpenTelemetryVertxTracer.SpanOperation,OpenTelemetryVertxTracer.SpanOperation>
All Known Implementing Classes:
EventBusInstrumenterVertxTracer, HttpInstrumenterVertxTracer, RedisClientInstrumenterVertxTracer, SqlClientInstrumenterVertxTracer

public interface InstrumenterVertxTracer<REQ,RESP> extends io.vertx.core.spi.tracing.VertxTracer<OpenTelemetryVertxTracer.SpanOperation,OpenTelemetryVertxTracer.SpanOperation>
  • Method Details

    • receiveRequest

      default <R> OpenTelemetryVertxTracer.SpanOperation 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)
      Specified by:
      receiveRequest in interface io.vertx.core.spi.tracing.VertxTracer<REQ,RESP>
    • sendResponse

      default <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:
      sendResponse in interface io.vertx.core.spi.tracing.VertxTracer<REQ,RESP>
    • sendRequest

      default <R> OpenTelemetryVertxTracer.SpanOperation 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)
      Specified by:
      sendRequest in interface io.vertx.core.spi.tracing.VertxTracer<REQ,RESP>
    • receiveResponse

      default <R> void receiveResponse(io.vertx.core.Context context, R response, OpenTelemetryVertxTracer.SpanOperation spanOperation, Throwable failure, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)
      Specified by:
      receiveResponse in interface io.vertx.core.spi.tracing.VertxTracer<REQ,RESP>
    • canHandle

      <R> boolean canHandle(R request, io.vertx.core.spi.tracing.TagExtractor<R> tagExtractor)
    • getReceiveRequestInstrumenter

      io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<REQ,RESP> getReceiveRequestInstrumenter()
    • getSendResponseInstrumenter

      io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<REQ,RESP> getSendResponseInstrumenter()
    • getSendRequestInstrumenter

      io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<REQ,RESP> getSendRequestInstrumenter()
    • getReceiveResponseInstrumenter

      io.opentelemetry.instrumentation.api.instrumenter.Instrumenter<REQ,RESP> getReceiveResponseInstrumenter()
    • spanOperation

      default OpenTelemetryVertxTracer.SpanOperation spanOperation(io.vertx.core.Context context, REQ request, io.vertx.core.MultiMap headers, io.opentelemetry.context.Context spanContext, io.opentelemetry.context.Scope scope)
    • writableHeaders

      default REQ writableHeaders(REQ request, BiConsumer<String,String> headers)