Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update otel properties the Quarkus bumped the otel #1888

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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