From 3d83fe20379c471b8ccf83506ef3a6faea3a006e Mon Sep 17 00:00:00 2001 From: Jakub Jedlicka Date: Tue, 16 Jul 2024 12:44:40 +0200 Subject: [PATCH] Update Otel properties as the Quarkus bumped the Otel For more info see quarkusio/quarkus#41521 --- .../ts/javaee/gettingstarted/OpenAPITracingIT.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/javaee-like-getting-started/src/test/java/io/quarkus/ts/javaee/gettingstarted/OpenAPITracingIT.java b/javaee-like-getting-started/src/test/java/io/quarkus/ts/javaee/gettingstarted/OpenAPITracingIT.java index 26871199c..84865d061 100644 --- a/javaee-like-getting-started/src/test/java/io/quarkus/ts/javaee/gettingstarted/OpenAPITracingIT.java +++ b/javaee-like-getting-started/src/test/java/io/quarkus/ts/javaee/gettingstarted/OpenAPITracingIT.java @@ -20,9 +20,9 @@ public class OpenAPITracingIT { private static final String SUPPRESS_NON_APPLICATION_URIS = "quarkus.otel.traces.suppress-non-application-uris"; - private static final String HTTP_TARGET_TAG = "http.target"; - private static final String HTTP_STATUS_CODE_TAG = "http.status_code"; - private static final String HTTP_METHOD_TAG = "http.method"; + private static final String URL_PATH_TAG = "url.path"; + private static final String HTTP_RESPONSE_STATUS_CODE_TAG = "http.response.status_code"; + private static final String HTTP_REQUEST_METHOD_TAG = "http.request.method"; private static final String SPAN_KIND_TAG = "span.kind"; private static final String OPEN_API_PATH = "/q/openapi"; private static final String OPEN_API_OPERATION = "GET /openapi"; @@ -74,9 +74,9 @@ private void testTraced(String path, String operation) { verifyDataSize(response, 1); verifySpansSize(response); verifySpanOperationName(response, operation); - verifySpanTag(response, HTTP_TARGET_TAG, path); - verifySpanTag(response, HTTP_STATUS_CODE_TAG, HttpStatus.SC_OK); - verifySpanTag(response, HTTP_METHOD_TAG, "GET"); + verifySpanTag(response, URL_PATH_TAG, path); + verifySpanTag(response, HTTP_RESPONSE_STATUS_CODE_TAG, HttpStatus.SC_OK); + verifySpanTag(response, HTTP_REQUEST_METHOD_TAG, "GET"); verifySpanTag(response, SPAN_KIND_TAG, "server"); }); }