Fix version compatibility for JSON-RPC4J Plugin (#50)

This commit is contained in:
Jiajing LU 2021-10-12 17:33:59 +08:00 committed by GitHub
parent 813fc31bd2
commit 2ecdc18901
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 19 deletions

View File

@ -34,6 +34,7 @@ Release Notes.
* Make `HTTP method` in the operation name according to runtime, rather than previous code-level definition, which used to have possibilities including multiple HTTP methods.
* Fix the bug that httpasyncclient-4.x-plugin does not take effect every time.
* Add plugin to support ClickHouse JDBC driver.
* Fix version compatibility for JsonRPC4J plugin.
#### Documentation

View File

@ -52,18 +52,7 @@ public class JsonRpcHttpClientInstrumentation extends ClassInstanceMethodsEnhanc
new ConstructorInterceptPoint() {
@Override
public ElementMatcher<MethodDescription> getConstructorMatcher() {
return ElementMatchers.takesArguments(6).and(ElementMatchers.takesArgument(1, URL.class));
}
@Override
public String getConstructorInterceptor() {
return INTERCEPTOR_CLASS;
}
},
new ConstructorInterceptPoint() {
@Override
public ElementMatcher<MethodDescription> getConstructorMatcher() {
return ElementMatchers.takesArguments(5).and(ElementMatchers.takesArgument(1, URL.class));
return ElementMatchers.takesArgument(1, URL.class);
}
@Override

View File

@ -56,6 +56,7 @@ metrics based on the tracing data.
* [Brpc-Java](https://github.com/baidu/brpc-java) 2.3.7 -> 2.5.3
* [Thrift](https://github.com/apache/thrift/tree/master/lib/java) 0.10.0 -> 0.12.0
* [Apache CXF](https://github.com/apache/cxf) 3.x
* [JSONRPC4J](https://github.com/briandilley/jsonrpc4j) 1.2.0 -> 1.6
* MQ
* [RocketMQ](https://github.com/apache/rocketmq) 4.x
* [Kafka](http://kafka.apache.org) 0.11.0.0 -> 2.8.0

View File

@ -33,7 +33,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<compiler.version>1.8</compiler.version>
<spring.boot.version>2.1.6.RELEASE</spring.boot.version>
<jsonrpc.version>1.5.3</jsonrpc.version>
<test.framework.version>1.5.3</test.framework.version>
</properties>
<dependencyManagement>
@ -57,7 +57,7 @@
<dependency>
<groupId>com.github.briandilley.jsonrpc4j</groupId>
<artifactId>jsonrpc4j</artifactId>
<version>${jsonrpc.version}</version>
<version>${test.framework.version}</version>
</dependency>
</dependencies>

View File

@ -18,7 +18,7 @@
package org.apache.skywalking.apm.testcase.jsonrpc4j;
import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImplExporter;
import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceExporter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@ -30,7 +30,7 @@ public class Application {
}
@Bean
public AutoJsonRpcServiceImplExporter serviceImplExporter() {
return new AutoJsonRpcServiceImplExporter();
public AutoJsonRpcServiceExporter serviceImplExporter() {
return new AutoJsonRpcServiceExporter();
}
}

View File

@ -18,10 +18,8 @@
package org.apache.skywalking.apm.testcase.jsonrpc4j.services;
import com.googlecode.jsonrpc4j.spring.AutoJsonRpcServiceImpl;
import org.springframework.stereotype.Service;
@AutoJsonRpcServiceImpl
@Service
public class DemoServiceImp implements DemoService {

View File

@ -18,3 +18,4 @@
1.5.3
1.4.6
1.3.3
1.2.0