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 of
WebClientExchangeTagsProvider
.- Since:
- 2.1.0
- Author:
- Brian Clozel, Nishant Raut
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIterable<io.micrometer.core.instrument.Tag>
tags
(ClientRequest request, ClientResponse response, Throwable throwable) Provide tags to be associated with metrics for the client exchange.
-
Constructor Details
-
DefaultWebClientExchangeTagsProvider
public DefaultWebClientExchangeTagsProvider()
-
-
Method Details
-
tags
public Iterable<io.micrometer.core.instrument.Tag> tags(ClientRequest request, ClientResponse response, Throwable throwable) Description copied from interface:WebClientExchangeTagsProvider
Provide tags to be associated with metrics for the client exchange.- Specified by:
tags
in 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
-