From dbeb7022756e739ae07a03f4651c65446708bf96 Mon Sep 17 00:00:00 2001 From: Theodor Mihalache Date: Wed, 20 Jul 2022 15:05:27 +0300 Subject: [PATCH] OpenTelemetry: NPE in HttpInstrumenterVertxTracer.RouteGetter when request got cancelled Organized imports Signed-off-by: Theodor Mihalache --- .../tracing/vertx/HttpInstrumenterVertxTracer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/extensions/opentelemetry/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/HttpInstrumenterVertxTracer.java b/extensions/opentelemetry/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/HttpInstrumenterVertxTracer.java index a686d4e689288..eb09123fb61bb 100644 --- a/extensions/opentelemetry/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/HttpInstrumenterVertxTracer.java +++ b/extensions/opentelemetry/opentelemetry/runtime/src/main/java/io/quarkus/opentelemetry/runtime/tracing/vertx/HttpInstrumenterVertxTracer.java @@ -1,5 +1,9 @@ package io.quarkus.opentelemetry.runtime.tracing.vertx; +import static io.opentelemetry.instrumentation.api.instrumenter.http.HttpRouteSource.FILTER; +import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.HTTP_CLIENT_IP; +import static io.quarkus.opentelemetry.runtime.OpenTelemetryConfig.INSTRUMENTATION_NAME; + import java.util.Collections; import java.util.List; import java.util.function.BiConsumer; @@ -36,10 +40,6 @@ import io.vertx.core.spi.observability.HttpResponse; import io.vertx.core.spi.tracing.TagExtractor; -import static io.opentelemetry.instrumentation.api.instrumenter.http.HttpRouteSource.FILTER; -import static io.opentelemetry.semconv.trace.attributes.SemanticAttributes.HTTP_CLIENT_IP; -import static io.quarkus.opentelemetry.runtime.OpenTelemetryConfig.INSTRUMENTATION_NAME; - class HttpInstrumenterVertxTracer implements InstrumenterVertxTracer { private final Instrumenter serverInstrumenter; private final Instrumenter clientInstrumenter;