Skip to content

Commit

Permalink
Update Otel properties as the Quarkus bumped the Otel
Browse files Browse the repository at this point in the history
For more info see quarkusio/quarkus#41521
  • Loading branch information
jedla97 committed Jul 16, 2024
1 parent b4674c0 commit 3d83fe2
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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");
});
}
Expand Down

0 comments on commit 3d83fe2

Please sign in to comment.