public class DefaultWebMvcTagsProvider extends java.lang.Object implements WebMvcTagsProvider
WebMvcTagsProvider.| Constructor and Description |
|---|
DefaultWebMvcTagsProvider() |
DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash) |
DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash,
java.util.List<WebMvcTagsContributor> contributors)
Creates a new
DefaultWebMvcTagsProvider that will provide tags from the
given contributors in addition to its own. |
DefaultWebMvcTagsProvider(java.util.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 |
|---|---|
java.lang.Iterable<io.micrometer.core.instrument.Tag> |
getLongRequestTags(javax.servlet.http.HttpServletRequest request,
java.lang.Object handler)
Provides tags to be used by
long task timers. |
java.lang.Iterable<io.micrometer.core.instrument.Tag> |
getTags(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.Throwable exception)
Provides tags to be associated with metrics for the given
request and
response exchange. |
public DefaultWebMvcTagsProvider()
public DefaultWebMvcTagsProvider(java.util.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,
java.util.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 java.lang.Iterable<io.micrometer.core.instrument.Tag> getTags(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.Object handler,
java.lang.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 java.lang.Iterable<io.micrometer.core.instrument.Tag> getLongRequestTags(javax.servlet.http.HttpServletRequest request,
java.lang.Object handler)
WebMvcTagsProviderlong task timers.getLongRequestTags in interface WebMvcTagsProviderrequest - the HTTP requesthandler - the handler for the request or null if the handler is
unknown