Class DefaultWebClientExchangeTagsProvider
- java.lang.Object
- org.springframework.boot.actuate.metrics.web.reactive.client.DefaultWebClientExchangeTagsProvider
- All Implemented Interfaces:
WebClientExchangeTagsProvider
public class DefaultWebClientExchangeTagsProvider extends Object implements WebClientExchangeTagsProvider
Default implementation ofWebClientExchangeTagsProvider.- Since:
- 2.1.0
Constructor Summary
Constructors Constructor Description DefaultWebClientExchangeTagsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Iterable<io.micrometer.core.instrument.Tag>tags(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ClientResponse response, Throwable throwable)Provide tags to be associated with metrics for the client exchange.
Constructor Detail
DefaultWebClientExchangeTagsProvider
public DefaultWebClientExchangeTagsProvider()
Method Detail
tags
public Iterable<io.micrometer.core.instrument.Tag> tags(org.springframework.web.reactive.function.client.ClientRequest request, org.springframework.web.reactive.function.client.ClientResponse response, Throwable throwable)
Description copied from interface:WebClientExchangeTagsProviderProvide tags to be associated with metrics for the client exchange.- Specified by:
tagsin interfaceWebClientExchangeTagsProvider- Parameters:
request- the client requestresponse- the server response (may benull)throwable- the exception (may benull)- Returns:
- tags to associate with metrics for the request and response exchange