Class DefaultZipkinRestTemplateCustomizer
java.lang.Object
org.springframework.cloud.sleuth.zipkin2.DefaultZipkinRestTemplateCustomizer
- All Implemented Interfaces:
ZipkinRestTemplateCustomizer
public class DefaultZipkinRestTemplateCustomizer
extends Object
implements ZipkinRestTemplateCustomizer
Default
ZipkinRestTemplateCustomizer that provides the GZip compression if
ZipkinProperties.getCompression() is enabled.- Since:
- 1.1.0
- Author:
- Marcin Grzejszczak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.client.RestTemplatecustomizeTemplate(org.springframework.web.client.RestTemplate restTemplate) Customizes theRestTemplateinstance.
-
Constructor Details
-
DefaultZipkinRestTemplateCustomizer
-
-
Method Details
-
customizeTemplate
public org.springframework.web.client.RestTemplate customizeTemplate(org.springframework.web.client.RestTemplate restTemplate) Description copied from interface:ZipkinRestTemplateCustomizerCustomizes theRestTemplateinstance. Might return a new one if necessary.- Specified by:
customizeTemplatein interfaceZipkinRestTemplateCustomizer- Parameters:
restTemplate- default object to customize- Returns:
- customized
RestTemplateor a new object
-