Skip to content

Commit

Permalink
[pinpoint-apm#11062] Change url info in pinpoint error data
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-ram committed May 27, 2024
1 parent bd2ace2 commit 9fe2842
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static class RequestInfo {
public RequestInfo(WebRequest request) {
if (request instanceof ServletWebRequest webRequest) {
this.method = webRequest.getRequest().getMethod();
this.url = String.valueOf(webRequest.getRequest().getRequestURL());
this.url = String.valueOf(webRequest.getAttribute("jakarta.servlet.error.request_uri", 0));
this.headers = getRequestHeader(webRequest);
this.parameters = request.getParameterMap();
} else {
Expand Down

0 comments on commit 9fe2842

Please sign in to comment.