Skip to main content

Module traffic_label

Module traffic_label 

Source
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§

ActionEntry 🔒
Rule 🔒
TrafficLabelPlugin
Applies the first matching rule’s action: header values and label values are $var templates 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.