From 71495d1ad99a631db630271abebbeffb8910b703 Mon Sep 17 00:00:00 2001 From: Jon Schneider Date: Sat, 16 Sep 2017 17:51:36 -0500 Subject: [PATCH] Make WebMvcMetrics#tagWithException public Closes gh-10318 --- .../boot/actuate/metrics/web/servlet/WebMvcMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java index 7ecd231b159..7d74712ea9c 100644 --- a/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java +++ b/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/servlet/WebMvcMetrics.java @@ -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);