mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-02 15:29:05 +00:00
Make WebMvcMetrics#tagWithException public
Closes gh-10318
This commit is contained in:
committed by
Stephane Nicoll
parent
224a4e46d9
commit
71495d1ad9
+1
-1
@@ -85,7 +85,7 @@ public class WebMvcMetrics {
|
||||
this.recordAsPercentiles = recordAsPercentiles;
|
||||
}
|
||||
|
||||
void tagWithException(Throwable exception) {
|
||||
public void tagWithException(Throwable exception) {
|
||||
RequestAttributes attributes = RequestContextHolder.getRequestAttributes();
|
||||
attributes.setAttribute(EXCEPTION_ATTRIBUTE, exception,
|
||||
RequestAttributes.SCOPE_REQUEST);
|
||||
|
||||
Reference in New Issue
Block a user