Issue Description
Type: feature request
Describe what happened (or what feature you want)
Bring nouveau Sentinel entry API in Sentinel 2.0. An example:
try (Sentinel.entry(resourceName)) {
// your logic here
} catch (BlockException e) {
// your block handler here
}
NOTE: The legacy SphU
and SphO
API will not be deprecated, but we'll recommend using the new API for Sentinel 2.0.
3条答案
按热度按时间trnvg8h31#
Sentinel 2.0相比1.8.x会有很大的变更吗? 可以将开源的2.0版本直接merge到二开的版本上(基于1.8.x)吗?
iqjalb3h2#
There will be breaking changes in Sentinel 2.0, but we'll try to keep compatibility with Sentinel 1.8.x.
7eumitmz3#
是所有api都发生了很大的变化嘛? 还是只是部分使用上的改变? 是类似nacos 1.x到2.x的大变更升级?还是只是增加部分功能以及部分Api名称的变化?