441 Star 2.1K Fork 689

GVPSkyWalking / skywalking

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
kafka-plugin.md 869 Bytes
一键复制 编辑 原始数据 按行查看 历史
Wing 提交于 2021-03-11 07:26 . Refine FAQ (#6525)

Problem

Tracing doesn't work on the Kafka consumer end.

Reason

The kafka client is responsible for pulling messages from the brokers, after which the data will be processed by user-defined codes. However, only the poll action can be traced by the plug-in and the subsequent data processing work inevitably goes beyond the scope of the trace context. Thus, in order to complete tracing on the client end, manual instrumentation is required, i.e. the poll action and the processing action should be wrapped manually.

Resolve

For a native Kafka client, please use the Application Toolkit libraries to do the manual instrumentation, with the help of the @KafkaPollAndInvoke annotation in apm-toolkit-kafka or with OpenTracing API. If you're using spring-kafka 1.3.x, 2.2.x or above, you can easily trace the consumer end without further configuration.

Java
1
https://gitee.com/OpenSkywalking/sky-walking.git
git@gitee.com:OpenSkywalking/sky-walking.git
OpenSkywalking
sky-walking
skywalking
master

搜索帮助