divyakumarjain opened a new issue #6835:
URL: https://github.com/apache/skywalking/issues/6835
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [ ] Question or discussion
- [ ] Bug
- [ ] Requirement
- [X] Feature or performance improvement
### Requirement or improvement
- Using Skywaking agent for Kafka client version 2.8.1 does not work as the
constructor of KafkaConsumer has changed. Earlier it use to take ConsumerConfig
as a parameter and now it takes Map. Thus ConsumerConstructorInterceptor is not
invoked during KafkaConsumer constructor. And finally following exception is
resulted from Skywalking Agent logs
```
main InstMethodsInter : class[class
org.apache.kafka.clients.consumer.KafkaConsumer] before method[pollForFetches]
intercept failure
java.lang.NullPointerException
at
org.apache.skywalking.apm.plugin.kafka.KafkaConsumerInterceptor.beforeMethod(KafkaConsumerInterceptor.java:52)
at
org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstMethodsInter.intercept(InstMethodsInter.java:76)
at
org.apache.kafka.clients.consumer.KafkaConsumer.pollForFetches(KafkaConsumer.java)
at
org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1233)
at
org.apache.kafka.clients.consumer.KafkaConsumer.poll(KafkaConsumer.java:1206)
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]