Skip to content

Commit

Permalink
feat: Fallback to name Span including requestURI
Browse files Browse the repository at this point in the history
  • Loading branch information
deas committed Mar 25, 2024
1 parent 296bd9e commit b94f789
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ String getHttpRoute(Context context, HttpServletRequest request) {
if (bestMatchingPattern != null) {
return prependContextPath(request, bestMatchingPattern.toString());
}
} else {
return request.getRequestURI();
}
} finally {
// mimic spring DispatcherServlet and restore the previous value of PATH_ATTRIBUTE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,7 @@ public void doFilterInternal(
error = t;
throw t;
} finally {
if (httpRouteSupport.hasMappings()) {
HttpServerRoute.update(context, CONTROLLER, httpRouteSupport::getHttpRoute, request);
}
HttpServerRoute.update(context, CONTROLLER, httpRouteSupport::getHttpRoute, request);
instrumenter.end(context, request, response, error);
}
}
Expand Down

0 comments on commit b94f789

Please sign in to comment.