Skip to content

Commit eaf8683

Browse files
committed
Fix timeunit in ZipkinConfigurations to milliseconds instead of seconds
Closes gh-31957
1 parent 767631e commit eaf8683

File tree

1 file changed

+2
-2
lines changed
  • spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot-actuator-autoconfigure/src/main/java/org/springframework/boot/actuate/autoconfigure/tracing/zipkin/ZipkinConfigurations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ static class UrlConnectionSenderConfiguration {
6060
@Bean
6161
@ConditionalOnMissingBean(Sender.class)
6262
URLConnectionSender urlConnectionSender(ZipkinProperties properties) {
63-
return URLConnectionSender.newBuilder().connectTimeout((int) properties.getConnectTimeout().getSeconds())
64-
.readTimeout((int) properties.getReadTimeout().getSeconds()).endpoint(properties.getEndpoint())
63+
return URLConnectionSender.newBuilder().connectTimeout((int) properties.getConnectTimeout().toMillis())
64+
.readTimeout((int) properties.getReadTimeout().toMillis()).endpoint(properties.getEndpoint())
6565
.build();
6666
}
6767

0 commit comments

Comments
 (0)