1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
This folder contains minimal plugins for the `--plugin` runtime.
Prints hook payload highlights to stderr for:
- ---
Build:
```bash
cargo build --release --target wasm32-wasip1 --manifest-path examples/plugins/echo-hook-logger/Cargo.toml
```
Run:
```bash
cargo run --features wasm -- \
--plugin ./examples/plugins/echo-hook-logger/target/wasm32-wasip1/release/echo-hook-logger.wasm \
-u http://localhost:3000 -t 10 --summary --no-tui --no-charts
```
Fails the plugin hook if success rate drops below a threshold.
Default threshold: `99%`.
Optional env override:
```bash
export STREST_MIN_SUCCESS_PCT=95
```
Build:
```bash
cargo build --release --target wasm32-wasip1 --manifest-path examples/plugins/slo-guard/Cargo.toml
```
Run:
```bash
cargo run --features wasm -- \
--plugin ./examples/plugins/slo-guard/target/wasm32-wasip1/release/slo-guard.wasm \
-u http://localhost:3000 -t 10 --summary --no-tui --no-charts
```