Interface WebMvcTagsProvider
- All Known Implementing Classes:
DefaultWebMvcTagsProvider
Deprecated, for removal: This API element is subject to removal in a future version.
Provides
Tags
for Spring MVC-based request handling.- Since:
- 2.0.0
- Author:
- Jon Schneider, Andy Wilkinson
-
Method Summary
Modifier and TypeMethodDescriptionIterable<io.micrometer.core.instrument.Tag>
getLongRequestTags
(HttpServletRequest request, Object handler) Deprecated, for removal: This API element is subject to removal in a future version.Provides tags to be used bylong task timers
.Iterable<io.micrometer.core.instrument.Tag>
getTags
(HttpServletRequest request, HttpServletResponse response, Object handler, Throwable exception) Deprecated, for removal: This API element is subject to removal in a future version.Provides tags to be associated with metrics for the givenrequest
andresponse
exchange.
-
Method Details
-
getTags
Iterable<io.micrometer.core.instrument.Tag> getTags(HttpServletRequest request, HttpServletResponse response, Object handler, Throwable exception) Deprecated, for removal: This API element is subject to removal in a future version.Provides tags to be associated with metrics for the givenrequest
andresponse
exchange.- Parameters:
request
- the requestresponse
- the responsehandler
- the handler for the request ornull
if the handler is unknownexception
- the current exception, if any- Returns:
- tags to associate with metrics for the request and response exchange
-
getLongRequestTags
Iterable<io.micrometer.core.instrument.Tag> getLongRequestTags(HttpServletRequest request, Object handler) Deprecated, for removal: This API element is subject to removal in a future version.Provides tags to be used bylong task timers
.- Parameters:
request
- the HTTP requesthandler
- the handler for the request ornull
if the handler is unknown- Returns:
- tags to associate with metrics recorded for the request
-
ServerRequestObservationConvention