接口 WebMvcTagsProvider
- 所有已知实现类:
DefaultWebMvcTagsProvider
public interface WebMvcTagsProvider
ProvidesTags
for Spring MVC-based request handling.- 从以下版本开始:
- 2.0.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 Iterable<io.micrometer.core.instrument.Tag>
getLongRequestTags(javax.servlet.http.HttpServletRequest request, Object handler)
Provides tags to be used bylong task timers
.Iterable<io.micrometer.core.instrument.Tag>
getTags(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Throwable exception)
Provides tags to be associated with metrics for the givenrequest
andresponse
exchange.
方法详细资料
getTags
Iterable<io.micrometer.core.instrument.Tag> getTags(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Throwable exception)
Provides tags to be associated with metrics for the givenrequest
andresponse
exchange.- 参数:
request
- the requestresponse
- the responsehandler
- the handler for the request ornull
if the handler is unknownexception
- the current exception, if any- 返回:
- tags to associate with metrics for the request and response exchange
getLongRequestTags
Iterable<io.micrometer.core.instrument.Tag> getLongRequestTags(javax.servlet.http.HttpServletRequest request, Object handler)
Provides tags to be used bylong task timers
.- 参数:
request
- the HTTP requesthandler
- the handler for the request ornull
if the handler is unknown- 返回:
- tags to associate with metrics recorded for the request