Interface ZipkinRestTemplateCustomizer
-
- All Known Implementing Classes:
DefaultZipkinRestTemplateCustomizer
public interface ZipkinRestTemplateCustomizerImplementations customize theRestTemplateused 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 theDefaultZipkinRestTemplateCustomizer.- Since:
- 1.1.0
- Author:
- Marcin Grzejszczak
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default org.springframework.web.client.RestTemplatecustomizeTemplate(org.springframework.web.client.RestTemplate restTemplate)Customizes theRestTemplateinstance.
-
-
-
Method Detail
-
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
-
-