[Feature] Carry params by key-value in SphU.entry() | 参数埋点支持以 key-value 的方式传入参数
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
## Issue Description
Type: *feature request*
### Describe what feature you want
Support carrying params by key-value in `SphU.entry()`. An example:
```java
Map argMap = new HashMap();
argMap.put("key1", "value1");
argMap.put("key2", "value2");
SphU.entry("my-resource", EntryType.OUT, argMap);
```
热点参数埋点支持以 key-value 的方式传入参数,这样开发者可以无需像之前传入 args 一样关心参数顺序,从而更方便的配置热点规则(按照 key 来匹配即可,不需按参数匹配)。
热点规则的设计,以及 Entry API 的设计需要做相应的调整。
Contributor guide
Research direction
Start by reviewing the SphU.entry() API and the hotspot-rule design, since the issue names no files or tests. Clarify how key-value parameters should be represented and matched without relying on argument order; the work is done when the Entry API and hotspot rules support that behavior consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100