Interface WebMvcTagsContributor
Deprecated, for removal: This API element is subject to removal in a future version.
A contributor of
Tags for Spring MVC-based request handling. Typically used
by a WebMvcTagsProvider to provide tags in addition to its defaults.- Since:
- 2.3.0
-
Method Summary
Modifier and TypeMethodDescriptionIterable<io.micrometer.core.instrument.Tag>getLongRequestTags(jakarta.servlet.http.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(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.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 givenrequestandresponseexchange.
-
Method Details
-
getTags
Iterable<io.micrometer.core.instrument.Tag> getTags(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.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 givenrequestandresponseexchange.- Parameters:
request- the requestresponse- the responsehandler- the handler for the request ornullif 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(jakarta.servlet.http.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 ornullif the handler is unknown- Returns:
- tags to associate with metrics recorded for the request
-
ServerRequestObservationConvention