public class LongTaskTimingHandlerInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
HandlerInterceptor that supports Micrometer's long task timers configured on
a handler using Timed with Timed.longTask() set to true.| Constructor and Description |
|---|
LongTaskTimingHandlerInterceptor(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider)
Creates a new
LongTaskTimingHandlerInterceptor that will create
LongTaskTimers using the given registry. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterCompletion(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler,
Exception ex) |
boolean |
preHandle(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object handler) |
public LongTaskTimingHandlerInterceptor(io.micrometer.core.instrument.MeterRegistry registry,
WebMvcTagsProvider tagsProvider)
LongTaskTimingHandlerInterceptor that will create
LongTaskTimers using the given registry. Timers will be
tagged using the given tagsProvider.registry - the registrytagsProvider - the tags providerCopyright © 2019 Pivotal Software, Inc.. All rights reserved.