Sentinel [Feature] Carry params by key-value in SphU.entry() | 参数埋点支持以 key-value 的方式传入参数

py49o6xq  于 23天前  发布在  其他
关注(0)|答案(2)|浏览(20)

Issue Description

Type: feature request

Describe what feature you want

Support carrying params by key-value in SphU.entry() . An example:

Map<String, Object> argMap = new HashMap<String, Object>();
argMap.put("key1", "value1");
argMap.put("key2", "value2");

SphU.entry("my-resource", EntryType.OUT, argMap);

热点参数埋点支持以 key-value 的方式传入参数,这样开发者可以无需像之前传入 args 一样关心参数顺序,从而更方便的配置热点规则(按照 key 来匹配即可,不需按参数匹配)。

热点规则的设计,以及 Entry API 的设计需要做相应的调整。

e5nszbig

e5nszbig1#

如果是http请求,传入body的话是否需要评估内存占用问题?

相关问题