Skip to content

Commit 53a00a6

Browse files
Fix Gateway 2.0.x plugin not activated for spring-cloud-starter-gateway 2.0.0.RELEASE (#779)
1 parent e43a802 commit 53a00a6

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

‎CHANGES.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Release Notes.
1919
* Fix Jetty client cannot receive the HTTP response body.
2020
* Eliminate repeated code with HttpServletRequestWrapper in mvc-annotation-commons.
2121
* Add the jdk httpclient plugin.
22-
22+
* Fix Gateway 2.0.x plugin not activated for spring-cloud-starter-gateway 2.0.0.RELEASE.
2323
All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/242?closed=1)
2424

2525
------------------

‎apm-sniffer/optional-plugins/optional-spring-plugins/optional-spring-cloud/gateway-2.0.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/cloud/gateway/v20x/define/AbstractGateway200EnhancePluginDefine.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public abstract class AbstractGateway200EnhancePluginDefine extends ClassInstanc
2424
@Override
2525
protectedString[] witnessClasses(){
2626
returnnewString[]{
27-
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration$1"
27+
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration"
2828
};
2929
}
3030
}

‎apm-sniffer/optional-plugins/optional-spring-plugins/optional-spring-cloud/gateway-2.0.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/cloud/gateway/v20x/define/AbstractGateway200EnhancePluginDefineV2.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public abstract class AbstractGateway200EnhancePluginDefineV2 extends ClassInsta
2424
@Override
2525
protectedString[] witnessClasses(){
2626
returnnewString[]{
27-
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration$1"
27+
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration"
2828
};
2929
}
3030
}

‎apm-sniffer/optional-plugins/optional-spring-plugins/optional-spring-cloud/gateway-2.0.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/cloud/gateway/v20x/define/DispatcherHandlerInstrumentation.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class DispatcherHandlerInstrumentation extends org.apache.skywalking.apm.
2323
@Override
2424
protectedString[] witnessClasses(){
2525
returnnewString[]{
26-
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration$1"
26+
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration"
2727
};
2828
}
2929
}

‎apm-sniffer/optional-plugins/optional-spring-plugins/optional-spring-cloud/gateway-2.0.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/spring/cloud/gateway/v20x/define/ServerWebExchangeInstrumentation.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class ServerWebExchangeInstrumentation extends org.apache.skywalking.apm.
2323
@Override
2424
protectedString[] witnessClasses(){
2525
returnnewString[]{
26-
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration$1"
26+
"org.springframework.cloud.gateway.config.GatewayAutoConfiguration"
2727
};
2828
}
2929
}

‎test/plugin/scenarios/gateway-2.0.x-scenario/gateway-projectA-scenario/pom.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
<artifactId>spring-cloud-starter-gateway</artifactId>
3535
<version>${test.framework.version}</version>
3636
</dependency>
37+
<dependency>
38+
<groupId>io.projectreactor</groupId>
39+
<artifactId>reactor-core</artifactId>
40+
<version>3.1.7.RELEASE</version>
41+
</dependency>
3742
</dependencies>
3843

3944
<build>

‎test/plugin/scenarios/gateway-2.0.x-scenario/support-version.list‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616

17-
2.0.4.RELEASE
17+
2.0.4.RELEASE
18+
2.0.0.RELEASE

0 commit comments

Comments
(0)