LiWenGu opened a new issue #7256:
URL: https://github.com/apache/skywalking/issues/7256


   - Why do you submit this issue?
   - [x] Feature or performance improvement
   ___
   
   ### Requirement or improvement
   - Please describe your requirements or improvement suggestions.
   
   Skywalking: 8.2.x
   OS: linux/mac
   JRE: 8.x
   plugin: elasticsearch-6.x-plugin
   
   some client use elasticsearch-rest-high-level-client is 5.6.4, will cause an 
exception.
   error log:
   ```log
   java.lang.ClassCastException: org.elasticsearch.client.RestClient cannot be 
cast to org.elasticsearch.client.RestClientBuilder
   at 
org.apache.skywalking.apm.plugin.elasticsearch.v6.interceptor.RestHighLevelClientConInterceptor.onConstruct(RestHighLevelClientConInterceptor.java:32)
   ```
   
   i use uranus and add witnessClass 
org.elasticsearch.client.common.XContentSource in 
`org.apache.skywalking.apm.plugin.elasticsearch.v6.define.RestHighLevelClientInstrumentation`


-- 
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]


Reply via email to