Expand description
Traffic labeling plugin (traffic-label) — a faithful subset of Apache
APISIX’s traffic-label plugin: match requests with condition expressions
and tag them, picking among weighted actions.
The APISIX plugin supports one action kind, set_headers, plus a weight
for weighted selection between an action group’s entries; featherbit adds
set_labels, which writes label.<key> entries into context.message so
downstream nodes (logging, scripts, upstream selection) can read the label
without touching the wire request.
This node never fails at execution time and is always pass-through: wire
success onward; the error port is never taken.
Structs§
- Action
Entry 🔒 - Rule 🔒
- Traffic
Label Plugin - Applies the first matching rule’s action: header values and label values
are
$vartemplates interpolated per request.
Functions§
- parse_
kv_ 🔒object - Parses a
{name: scalar-template}object into ordered pairs; numbers and bools are stringified, nested shapes are rejected.