public class DefaultWebMvcTagsProvider extends Object implements WebMvcTagsProvider
WebMvcTagsProvider.| Constructor and Description |
|---|
DefaultWebMvcTagsProvider() |
DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash) |
DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash,
List<WebMvcTagsContributor> contributors)
Creates a new
DefaultWebMvcTagsProvider that will provide tags from the
given contributors in addition to its own. |
DefaultWebMvcTagsProvider(List<WebMvcTagsContributor> contributors)
Creates a new
DefaultWebMvcTagsProvider that will provide tags from the
given contributors in addition to its own. |
| Modifier and Type | Method and Description |
|---|---|
Iterable<io.micrometer.core.instrument.Tag> |
getLongRequestTags(HttpServletRequest request,
Object handler)
Provides tags to be used by
long task timers. |
Iterable<io.micrometer.core.instrument.Tag> |
getTags(HttpServletRequest request,
HttpServletResponse response,
Object handler,
Throwable exception)
Provides tags to be associated with metrics for the given
request and
response exchange. |
public DefaultWebMvcTagsProvider()
public DefaultWebMvcTagsProvider(List<WebMvcTagsContributor> contributors)
DefaultWebMvcTagsProvider that will provide tags from the
given contributors in addition to its own.contributors - the contributors that will provide additional tagspublic DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash)
public DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash,
List<WebMvcTagsContributor> contributors)
DefaultWebMvcTagsProvider that will provide tags from the
given contributors in addition to its own.ignoreTrailingSlash - whether trailing slashes should be ignored when
determining the uri tag.contributors - the contributors that will provide additional tagspublic Iterable<io.micrometer.core.instrument.Tag> getTags(HttpServletRequest request, HttpServletResponse response, Object handler, Throwable exception)
WebMvcTagsProviderrequest and
response exchange.getTags in interface WebMvcTagsProviderrequest - the requestresponse - the responsehandler - the handler for the request or null if the handler is
unknownexception - the current exception, if anypublic Iterable<io.micrometer.core.instrument.Tag> getLongRequestTags(HttpServletRequest request, Object handler)
WebMvcTagsProviderlong task timers.getLongRequestTags in interface WebMvcTagsProviderrequest - the HTTP requesthandler - the handler for the request or null if the handler is
unknown