|
|
@@ -76,7 +76,7 @@ try { |
|
|
|
} |
|
|
|
``` |
|
|
|
|
|
|
|
So far the code modification is done. |
|
|
|
So far the code modification is done. We also provide [annotation support module](https://github.com/alibaba/Sentinel/blob/master/sentinel-extension/sentinel-annotation-aspectj/README.md) to define resource easier. |
|
|
|
|
|
|
|
### 3. Define Rules |
|
|
|
|
|
|
@@ -93,6 +93,8 @@ rules.add(rule); |
|
|
|
FlowRuleManager.loadRules(rules); |
|
|
|
``` |
|
|
|
|
|
|
|
For more information, please refer to [How To Use](https://github.com/alibaba/Sentinel/wiki/How-to-Use). |
|
|
|
|
|
|
|
### 4. Check the Result |
|
|
|
|
|
|
|
After running the demo for a while, you can see the following records in `~/logs/csp/${appName}-metrics.log`. |
|
|
@@ -144,3 +146,12 @@ These are only part of the companies using Sentinel, for reference only. If you |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |
|
|
|
 |