Commit 71495d1a authored by Jon Schneider's avatar Jon Schneider Committed by Stephane Nicoll

Make WebMvcMetrics#tagWithException public

Closes gh-10318
parent 224a4e46
...@@ -85,7 +85,7 @@ public class WebMvcMetrics { ...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment