Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

Support adding prefix to Dubbo service resource name in Sentinel Dubbo Adapter

Open zhongxunking opened this issue 7 years ago • 8 comments

Dubbo适配器提供的资源名目前没有前缀,只是包路径+类名。导致在控制台看到时不能直观的看出是Dubbo调用。可否增加前缀以示区别。比如服务提供者使用dubbo-provider,服务消费者使用dubbo-consumer

zhongxunking avatar Jan 17 '19 09:01 zhongxunking

Hi @zhongxunking, we detect non-English characters in the issue. This comment is an auto translation from @sentinel-bot 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 resource name provided by the Dubbo adapter adds the Dubbo prefix.

The resource name provided by the Dubbo adapter currently has no prefix, just the package path + class name. It is not intuitive to see that the Dubbo call is made when you see it in the console. Can I add a prefix to show the difference. For example, the service provider uses dubbo-provider, and the service consumer uses dubbo-consumer.

sentinel-bot avatar Jan 17 '19 09:01 sentinel-bot

Hi, thanks for your suggestion. For this, we need to consider compatibility with previous versions. Maybe we can add a property to control whether the resource name has a common prefix and configure the common prefix.

sczyh30 avatar Jan 17 '19 16:01 sczyh30

thanks, it is good. which version of sentinel will provide the feature?

zhongxunking avatar Jan 18 '19 02:01 zhongxunking

Contribution is welcomed~

sczyh30 avatar Jan 30 '19 02:01 sczyh30

I have a question: If the dubbo service shows the prefix, then the configuration rules should be prefixed?

linlinisme avatar May 29 '19 05:05 linlinisme

I have a question: If the dubbo service shows the prefix, then the configuration rules should be prefixed?

If the Dubbo service resource is added with the prefix, then when we configure rules it should also be prefixed. This is not compatible with existing rules.

sczyh30 avatar May 29 '19 05:05 sczyh30

So is it necessary to add the prefix?

linlinisme avatar May 29 '19 06:05 linlinisme

thanks, it is good. which version of sentinel will provide the feature?

This will be introduced in 1.7.0. See #859 for details.

sczyh30 avatar Aug 14 '19 15:08 sczyh30