sofastack / sofa-tracer

SOFATracer is a component for the distributed system call trace. And through a unified traceId logging the logs of various network calls in the invoking link. These logs can be used for quick discovery of faults, service governance, etc.
Apache License 2.0
1.11k stars 375 forks source link

The DUBBO plugin needs to be configured with additional filters. #269

Closed glmapper closed 4 years ago

glmapper commented 5 years ago

目前使用 Dubbo 插件时用户需要显示的配置的 Filter才能生效:

<!-- 消费方调用过程拦截 -->
<dubbo:reference filter="dubboSofaTracerFilter" />
<!-- 消费方调用过程缺省拦截器,将拦截所有reference -->
<dubbo:consumer filter="dubboSofaTracerFilter"/>

<!-- 提供方调用过程拦截 -->
<dubbo:service filter="dubboSofaTracerFilter" />
<!-- 提供方调用过程缺省拦截器,将拦截所有service -->
<dubbo:provider filter="dubboSofaTracerFilter"/>

在使用上需要用户强感知此 filter 的存在,给用户带来一种侵入感。因此期望使得在引入相关 依赖 jar 之后能够自动生效。

sofastack-bot[bot] commented 5 years ago

Hi @glmapper, 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.

The currently configured Filter that the user needs to display when using the Dubbo plugin will take effect: xml <!-- 消费方调用过程拦截 --><dubbo:reference filter="dubboSofaTracerFilter" /><!-- 消费方调用过程缺省拦截器,将拦截所有reference --><dubbo:consumer filter="dubboSofaTracerFilter"/><!-- 提供方调用过程拦截 --><dubbo:service filter="dubboSofaTracerFilter" /><!-- 提供方调用过程缺省拦截器,将拦截所有service --><dubbo:provider filter="dubboSofaTracerFilter"/> In the use of the user needs to strongly perceive the existence of this filter, giving users a sense of intrusion. It is therefore desirable to have it automatically take effect after the introduction of the relevant dependency jar.