feat: [ParamFlowRule]Add support for extracting param from complex object, when grade is RuleConstant.FLOW_GRADE_THREAD
Describe what this PR does / why we need it
When use ParamFlowRule, set grade to RuleConstant.FLOW_GRADE_THREAD, and use ParamFlowArgument as argument, it doesn't work. Add support for extracting param from complex object, when grade is RuleConstant.FLOW_GRADE_THREAD.
Does this pull request fix one issue?
https://github.com/alibaba/Sentinel/issues/2427
Describe how you did it
these two method takes ParamFlowArgument into account:
- com.alibaba.csp.sentinel.slots.block.flow.param.ParameterMetric#decreaseThreadCount
- com.alibaba.csp.sentinel.slots.block.flow.param.ParameterMetric#addThreadCount
Describe how to verify it
See com.alibaba.csp.sentinel.slots.block.flow.param.ParameterMetricTest#testAddAndDecreaseThreadCountForParamFlowArgument
Special notes for reviews
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
yuyue seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
Due to this PR's inactivity and the unsigned CLA, we are temporarily closing it. Feel free to create a new PR if you still intend to contribute after addressing the CLA requirement.