support Kafka SASL login module. (#7281)

Co-authored-by: Elliot Duan <elliot.duan@homecreditcfc.cn>
This commit is contained in:
Elliot Duan 2021-07-11 22:39:51 +08:00 committed by GitHub
parent a5b855d3a7
commit 6228d450e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,7 @@ Release Notes.
* Move `ehcache-2.x` plugin as an optional plugin.
* Support `guava-cache` plugin.
* Enhance the compatibility of `mysql-8.x-plugin` plugin.
* Support Kafka SASL login module.
#### OAP-Backend

View File

@ -44,6 +44,7 @@ import org.apache.skywalking.apm.agent.core.boot.DefaultNamedThreadFactory;
import org.apache.skywalking.apm.agent.core.boot.ServiceManager;
import org.apache.skywalking.apm.agent.core.logging.api.ILog;
import org.apache.skywalking.apm.agent.core.logging.api.LogManager;
import org.apache.skywalking.apm.agent.core.plugin.loader.AgentClassLoader;
import org.apache.skywalking.apm.agent.core.remote.GRPCChannelManager;
import org.apache.skywalking.apm.util.RunnableWithExceptionProtection;
import org.apache.skywalking.apm.util.StringUtil;
@ -96,6 +97,8 @@ public class KafkaProducerManager implements BootService, Runnable {
@Override
public void run() {
Thread.currentThread().setContextClassLoader(AgentClassLoader.getDefault());
Properties properties = new Properties();
properties.setProperty(
ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, KafkaReporterPluginConfig.Plugin.Kafka.BOOTSTRAP_SERVERS);