Skip to content

Commit d4b8e6d

Browse files
committed
Fixing property name
1 parent a3c3a1d commit d4b8e6d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

spring-cloud-gateway-server/src/main/java/org/springframework/cloud/gateway/config/GatewayMetricsAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public GatewayHttpTagsProvider gatewayHttpTagsProvider() {
7373
// TODO: remove support for the property `metrics.tags.path.enabled` in the next major
7474
@Bean
7575
@ConditionalOnExpression("'${" + GatewayProperties.PREFIX + ".metrics.tags.path.enabled:false}' == 'true' || '${"
76-
+ GatewayProperties.PREFIX + ".metrics.path-tags-provider.enabled:false}' == 'true'")
76+
+ GatewayProperties.PREFIX + ".metrics.path-tags.enabled:false}' == 'true'")
7777
public GatewayPathTagsProvider gatewayPathTagsProvider() {
7878
return new GatewayPathTagsProvider();
7979
}

spring-cloud-gateway-server/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,11 +444,11 @@
444444
"defaultValue": "false",
445445
"deprecation": {
446446
"reason": "Setting this property to true will cause the path tag to be added to all metrics.",
447-
"replacement": "spring.cloud.gateway.metrics.path-tags-provider.enabled"
447+
"replacement": "spring.cloud.gateway.metrics.path-tags.enabled"
448448
}
449449
},
450450
{
451-
"name": "spring.cloud.gateway.metrics.path-tags-provider.enabled",
451+
"name": "spring.cloud.gateway.metrics.path-tags.enabled",
452452
"type": "java.lang.Boolean",
453453
"description": "Enables the gateway path tag provider.",
454454
"defaultValue": "false"

0 commit comments

Comments
 (0)