Interface WebClientExchangeTagsProvider
- All Known Implementing Classes:
DefaultWebClientExchangeTagsProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface WebClientExchangeTagsProvider
Tags
provider for an exchange performed by aWebClient
.- Since:
- 2.1.0
Method Summary
All Methods Instance Methods Abstract 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.
Method Detail
tags
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.- 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