apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.52k stars 26.43k forks source link

新增自定义monitor,其protocol无法识别 #6915

Closed goofyan closed 3 years ago

goofyan commented 3 years ago

Environment

Steps to reproduce this issue

  1. 新增src\main\resources\META-INF\Dubbo\internal\com.alibaba.dubb.monitor.MonitorFactory,内容如aaa=com.xxx.xxx.AaaMonitorFactory
  2. 应用配置

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

按自定义方式实现服务监控

Actual Result

以DubboMonitorFactory-DubboMonitor实现服务监控 分析原因为MonitorConfig中getProtocol方式配置excluded为true,导致monitor上配置的protocol属性未识别,即无法按自定义的protocol执行

If there is an exception, please attach the exception trace:

Just put your stack trace here!
CrazyHZM commented 3 years ago

2.5.x is no longer maintained, it is recommended to upgrade to the latest version.