Browse Source

Make WebMvcMetrics#tagWithException public

Closes gh-10318
pull/9916/merge
Jon Schneider 8 years ago committed by Stephane Nicoll
parent
commit
71495d1ad9
  1. 2
      spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java

2
spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java

@ -85,7 +85,7 @@ public class WebMvcMetrics { @@ -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);

Loading…
Cancel
Save