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 Type
    Method
    Description
    default org.springframework.web.client.RestTemplate
    customizeTemplate(org.springframework.web.client.RestTemplate restTemplate)
    Customizes the RestTemplate instance.
  • Method Details

    • customizeTemplate

      default org.springframework.web.client.RestTemplate customizeTemplate(org.springframework.web.client.RestTemplate restTemplate)
      Customizes the RestTemplate instance. Might return a new one if necessary.
      Parameters:
      restTemplate - default object to customize
      Returns:
      customized RestTemplate or a new object
      Since:
      2.2.0