Skip to content

Commit

Permalink
Merge pull request #1888 from jedla97/fix-javaee-gettingstarted
Browse files Browse the repository at this point in the history
Update otel properties the Quarkus bumped the otel
  • Loading branch information
michalvavrik authored Jul 16, 2024
2 parents b4674c0 + 3d83fe2 commit 9714300
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 9714300

Please sign in to comment.