Apache Kafka Producer和Consumer的Spring Slueth实现



我没有使用Spring Kafka模块来生成和消费消息。相反,我使用的是带有生产者和消费者实现的Apache客户端库。由于我没有使用Spring Kafka,因此没有应用Spring Slueth自动配置来生成跟踪。我已经提到https://docs.spring.io/spring-cloud-sleuth/docs/current-SNAPSHOT/reference/html/integrations.html我没有找到任何关于如何将SpringSlueth应用于使用第三方库的代码的文档?

如果您没有使用Spring,那么不要将其添加到非Spring代码中。

Sleuth中的跟踪是使用Brave Kafka Interceptor 实现的

最新更新