HttpZipkinFactory extends ReportingZipkinFactory { @JsonProperty public String getBaseUrl() { return baseUrl; }  @JsonProperty String getBaseUrl(); @JsonProperty void setBaseUrl(String baseUrl); @JsonProperty void setConnectTimeout(Duration connectTimeout); @JsonProperty void setReadTimeout(Duration readTimeout); @Override Optional<HttpTracing> build(final Environment environment);  }
@Test public void shouldBeConfigurable() throws IOException { ObjectMapper mapper = new ObjectMapper(new YAMLFactory()).setSubtypeResolver(new DiscoverableSubtypeResolver()); final ZipkinFactory factory = mapper.readValue( "enabled: true\n" + "collector: http\n" + "baseUrl: http: + "connectTimeout: 1d\n" + "readTimeout: 2d\n" + "reportTimeout: 3d\n", ZipkinFactory.class); assertThat(factory).isInstanceOf(HttpZipkinFactory.class); HttpZipkinFactory httpFactory = (HttpZipkinFactory) factory; assertThat(httpFactory.getBaseUrl()).isEqualTo("http: assertThat(httpFactory.getReportTimeout()).isEqualTo(Duration.days(3)); }