Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

自定义Slot

Open levanhoa66803-cmyk opened this issue 3 months ago • 1 comments

在组合使用slot 的场景下(GatewayFlowSlot+自定义slot ),GatewayFlowSlot 通过SentinelGatewayFilter 从上下文中提取值,GatewayFlowSlot 进行值与规则的匹配; 请问自定义slot 如何拿到拦截器冲上下文提取的值呢? 思路:如果新增一个slot ,在GatewayFlowSlot 之前执行,通过context 判断如果时网关的,则获取数值传递到下一个slot ;目前版本是否有提gatewayContext ?

levanhoa66803-cmyk avatar Sep 04 '25 09:09 levanhoa66803-cmyk

目前 Sentinel 的 Context 中暂时不支持传递一些自定义的内容,可以再具体描述下使用的场景

LearningGp avatar Sep 15 '25 12:09 LearningGp