diff --git a/CHANGELOG.md b/CHANGELOG.md index ec3cb71e9..87936125b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,3 +20,4 @@ - [Feature: support nacos registry](https://github.com/Tencent/spring-cloud-tencent/pull/757) - [Bugfix: fix reactor concurrent bug when get instances & fix spring-retry fuse not working bug](https://github.com/Tencent/spring-cloud-tencent/pull/775) - [Fix issue: prompt no registration if web dependence was not imported.](https://github.com/Tencent/spring-cloud-tencent/pull/777) +- [set reporter.enabled default to true](https://github.com/Tencent/spring-cloud-tencent/pull/786) diff --git a/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/config/RpcEnhancementReporterProperties.java b/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/config/RpcEnhancementReporterProperties.java index fc51b31c6..8bfaf9b9e 100644 --- a/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/config/RpcEnhancementReporterProperties.java +++ b/spring-cloud-tencent-rpc-enhancement/src/main/java/com/tencent/cloud/rpc/enhancement/config/RpcEnhancementReporterProperties.java @@ -35,7 +35,7 @@ public class RpcEnhancementReporterProperties { /** * Whether report call result to polaris. */ - private boolean enabled; + private boolean enabled = true; /** * Specify the Http status code(s) that needs to be reported as FAILED. diff --git a/spring-cloud-tencent-rpc-enhancement/src/main/resources/META-INF/additional-spring-configuration-metadata.json b/spring-cloud-tencent-rpc-enhancement/src/main/resources/META-INF/additional-spring-configuration-metadata.json index 6f15540b1..87d71c2d5 100644 --- a/spring-cloud-tencent-rpc-enhancement/src/main/resources/META-INF/additional-spring-configuration-metadata.json +++ b/spring-cloud-tencent-rpc-enhancement/src/main/resources/META-INF/additional-spring-configuration-metadata.json @@ -9,7 +9,7 @@ { "name": "spring.cloud.tencent.rpc-enhancement.reporter.enabled", "type": "java.lang.Boolean", - "defaultValue": false, + "defaultValue": true, "description": "Whether report call result to polaris." }, {