Closed qingfeng-bi closed 4 years ago
Hi @qingfeng-bi, we detect non-English characters in the issue. This comment is an auto translation by @sofastack-robot to help other users to understand this issue.
We encourage you to describe your issue in English which is more friendly to other users.
Whether the link can add whitelist or blacklist function to specify or filter which requests need to be tracked and which requests do not need to be tracked. Because when the microservices are deployed on the k8s, there will be many requests for heartbeat check. These frequent heartbeat check requests will be reported to the zipkin, which can be regarded as "junk data". Thank you.
链路是否可以增加白名单或黑名单功能,来指定或过滤哪些请求需要跟踪,哪些请求不需要跟踪。因为当微服务在k8s上部署时,会有很多心跳检查的请求,这些频繁的心跳检查请求都会被上报到zipkin中,相对来讲可视为“垃圾数据”。谢谢。
可以通过自定义采样规则来解决你的问题 ,参考:自定义采样规则
已经验证,自定义采样规则只能控制心跳检查的请求是否打印到日志里,不能控制是否上报到zipkin。如何控制是否上报到zipkin呢?
可以提交一个pr,当上报zipkin时做下采样检验:smile:
已经提交pr了,显示Travis CI Build Failed 是什么原因呢?我用jdk1.8编译的,没用openjdk。
链路是否可以增加白名单或黑名单功能,来指定或过滤哪些请求需要跟踪,哪些请求不需要跟踪。因为当微服务在k8s上部署时,会有很多心跳检查的请求,这些频繁的心跳检查请求都会被上报到zipkin中,相对来讲可视为“垃圾数据”。谢谢。