Avoid NPE in ElasticSearch 5 client due to version mismatch. (#6863)

This commit is contained in:
Ax1an 2021-05-07 16:01:42 +08:00 committed by GitHub
parent 0036ea674f
commit 667f3be3bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ Release Notes.
* Add `spring-cloud-gateway-3.x` optional plugin.
* Add `okhttp-4.x` plugin.
* Fix NPE when thrift field is nested in plugin `thrift`
* Fix possible NullPointerException in agent's ES plugin.
#### OAP-Backend
* BugFix: filter invalid Envoy access logs whose socket address is empty.

View File

@ -257,4 +257,9 @@ public class RestHighLevelClientInstrumentation extends ClassEnhancePluginDefine
public StaticMethodsInterceptPoint[] getStaticMethodsInterceptPoints() {
return new StaticMethodsInterceptPoint[0];
}
@Override
protected String[] witnessClasses() {
return new String[] {Constants.TASK_TRANSPORT_CHANNEL_WITNESS_CLASSES};
}
}