Make WebMvcMetrics#tagWithException public
Closes gh-10318
This commit is contained in:
parent
224a4e46d9
commit
71495d1ad9
|
|
@ -85,7 +85,7 @@ public class WebMvcMetrics {
|
||||||
this.recordAsPercentiles = recordAsPercentiles;
|
this.recordAsPercentiles = recordAsPercentiles;
|
||||||
}
|
}
|
||||||
|
|
||||||
void tagWithException(Throwable exception) {
|
public void tagWithException(Throwable exception) {
|
||||||
RequestAttributes attributes = RequestContextHolder.getRequestAttributes();
|
RequestAttributes attributes = RequestContextHolder.getRequestAttributes();
|
||||||
attributes.setAttribute(EXCEPTION_ATTRIBUTE, exception,
|
attributes.setAttribute(EXCEPTION_ATTRIBUTE, exception,
|
||||||
RequestAttributes.SCOPE_REQUEST);
|
RequestAttributes.SCOPE_REQUEST);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue