Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sczyh30 opened this issue Apr 27, 2023 · 2 comments
Labels
kind/feature Category issues or prs related to feature request.

Comments

@sczyh30
Copy link
Member

sczyh30 commented Apr 27, 2023

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 的设计需要做相应的调整。

@sczyh30 sczyh30 added the kind/feature Category issues or prs related to feature request. label Apr 27, 2023
@luffy0223
Copy link

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

@WindSearcher
Copy link

我能尝试下嘛

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Category issues or prs related to feature request.
Projects
None yet
Development

No branches or pull requests

3 participants