Merge pull request #10318 from jkschneider:patch-1

* pr/10318:
  Make WebMvcMetrics#tagWithException public
This commit is contained in:
Stephane Nicoll 2017-09-19 14:03:13 +02:00
commit 0e46d0f586
1 changed files with 1 additions and 1 deletions

View File

@ -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);