Class DefaultWebMvcTagsProvider
java.lang.Object
org.springframework.boot.actuate.metrics.web.servlet.DefaultWebMvcTagsProvider
- All Implemented Interfaces:
WebMvcTagsProvider
@Deprecated(since="3.0.0",
forRemoval=true)
public class DefaultWebMvcTagsProvider
extends Object
implements WebMvcTagsProvider
Deprecated, for removal: This API element is subject to removal in a future version.
Default implementation of
WebMvcTagsProvider.- Since:
- 2.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash) Deprecated, for removal: This API element is subject to removal in a future version.DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash, List<WebMvcTagsContributor> contributors) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newDefaultWebMvcTagsProviderthat will provide tags from the givencontributorsin addition to its own.DefaultWebMvcTagsProvider(List<WebMvcTagsContributor> contributors) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newDefaultWebMvcTagsProviderthat will provide tags from the givencontributorsin addition to its own. -
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.
-
Constructor Details
-
DefaultWebMvcTagsProvider
public DefaultWebMvcTagsProvider()Deprecated, for removal: This API element is subject to removal in a future version. -
DefaultWebMvcTagsProvider
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newDefaultWebMvcTagsProviderthat will provide tags from the givencontributorsin addition to its own.- Parameters:
contributors- the contributors that will provide additional tags- Since:
- 2.3.0
-
DefaultWebMvcTagsProvider
public DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash) Deprecated, for removal: This API element is subject to removal in a future version. -
DefaultWebMvcTagsProvider
public DefaultWebMvcTagsProvider(boolean ignoreTrailingSlash, List<WebMvcTagsContributor> contributors) Deprecated, for removal: This API element is subject to removal in a future version.Creates a newDefaultWebMvcTagsProviderthat will provide tags from the givencontributorsin addition to its own.- Parameters:
ignoreTrailingSlash- whether trailing slashes should be ignored when determining theuritag.contributors- the contributors that will provide additional tags- Since:
- 2.3.0
-
-
Method Details
-
getTags
public 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.Description copied from interface:WebMvcTagsProviderProvides tags to be associated with metrics for the givenrequestandresponseexchange.- Specified by:
getTagsin interfaceWebMvcTagsProvider- 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
public 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.Description copied from interface:WebMvcTagsProviderProvides tags to be used bylong task timers.- Specified by:
getLongRequestTagsin interfaceWebMvcTagsProvider- 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