shichaoyuan commented on code in PR #607:
URL: https://github.com/apache/skywalking-java/pull/607#discussion_r1321551105
##########
apm-sniffer/apm-sdk-plugin/elasticsearch-6.x-plugin/src/main/java/org/apache/skywalking/apm/plugin/elasticsearch/v6/interceptor/TransportActionNodeProxyExecuteMethodsInterceptor.java:
##########
@@ -76,7 +76,15 @@ public void handleMethodException(EnhancedInstance objInst,
Method method, Objec
@Override
public void onConstruct(EnhancedInstance objInst, Object[] allArguments) {
- EnhancedInstance actions = (EnhancedInstance) allArguments[2];
+ EnhancedInstance actions;
+ if (allArguments.length > 2) {
+ // (Settings settings, GenericAction<Request, Response> action,
TransportService transportService)
+ actions = (EnhancedInstance) allArguments[2];
+ } else {
+ // 7.11 +
+ // (ActionType<Response> action, TransportService transportService)
+ actions = (EnhancedInstance) allArguments[1];
+ }
Review Comment:
fixed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]