Class DefaultWebFluxTagsProvider
java.lang.Object
org.springframework.boot.actuate.metrics.web.reactive.server.DefaultWebFluxTagsProvider
- All Implemented Interfaces:
WebFluxTagsProvider
Default implementation of
WebFluxTagsProvider
.- Since:
- 2.0.0
- Author:
- Jon Schneider, Andy Wilkinson
-
Constructor Summary
ConstructorDescriptionDefaultWebFluxTagsProvider
(boolean ignoreTrailingSlash) DefaultWebFluxTagsProvider
(boolean ignoreTrailingSlash, List<WebFluxTagsContributor> contributors) Creates a newDefaultWebFluxTagsProvider
that will provide tags from the givencontributors
in addition to its own.DefaultWebFluxTagsProvider
(List<WebFluxTagsContributor> contributors) Creates a newDefaultWebFluxTagsProvider
that will provide tags from the givencontributors
in addition to its own. -
Method Summary
Modifier and TypeMethodDescriptionIterable<io.micrometer.core.instrument.Tag>
httpRequestTags
(ServerWebExchange exchange, Throwable exception) Provides tags to be associated with metrics for the givenexchange
.
-
Constructor Details
-
DefaultWebFluxTagsProvider
public DefaultWebFluxTagsProvider() -
DefaultWebFluxTagsProvider
Creates a newDefaultWebFluxTagsProvider
that will provide tags from the givencontributors
in addition to its own.- Parameters:
contributors
- the contributors that will provide additional tags- Since:
- 2.3.0
-
DefaultWebFluxTagsProvider
public DefaultWebFluxTagsProvider(boolean ignoreTrailingSlash) -
DefaultWebFluxTagsProvider
public DefaultWebFluxTagsProvider(boolean ignoreTrailingSlash, List<WebFluxTagsContributor> contributors) Creates a newDefaultWebFluxTagsProvider
that will provide tags from the givencontributors
in addition to its own.- Parameters:
ignoreTrailingSlash
- whether trailing slashes should be ignored when determining theuri
tag.contributors
- the contributors that will provide additional tags- Since:
- 2.3.0
-
-
Method Details
-
httpRequestTags
public Iterable<io.micrometer.core.instrument.Tag> httpRequestTags(ServerWebExchange exchange, Throwable exception) Description copied from interface:WebFluxTagsProvider
Provides tags to be associated with metrics for the givenexchange
.- Specified by:
httpRequestTags
in interfaceWebFluxTagsProvider
- Parameters:
exchange
- the exchangeexception
- the current exception (may benull
)- Returns:
- tags to associate with metrics for the request and response exchange
-