Interface ZipkinRestTemplateCustomizer
- All Known Implementing Classes:
DefaultZipkinRestTemplateCustomizer
public interface ZipkinRestTemplateCustomizer
Implementations customize the
RestTemplate used to report spans to Zipkin. For
example, they can add an additional header needed by their environment.
Implementors must gzip according to ZipkinProperties.Compression, for example
by using the DefaultZipkinRestTemplateCustomizer.
- Since:
- 1.1.0
- Author:
- Marcin Grzejszczak
-
Method Summary
Modifier and TypeMethodDescriptiondefault org.springframework.web.client.RestTemplatecustomizeTemplate(org.springframework.web.client.RestTemplate restTemplate) Customizes theRestTemplateinstance.
-
Method Details
-
customizeTemplate
default org.springframework.web.client.RestTemplate customizeTemplate(org.springframework.web.client.RestTemplate restTemplate) Customizes theRestTemplateinstance. Might return a new one if necessary.- Parameters:
restTemplate- default object to customize- Returns:
- customized
RestTemplateor a new object - Since:
- 2.2.0
-