Expand description
hyperlane-plugin-canary
Deterministic feature-flag, A/B experimentation, and progressive canary
rollout middleware for Hyperlane with XxHash3_64 basis-point sticky
bucketing, forced overrides, and X-Variant/Vary response propagation.
Structs§
- Canary
Config - Configuration for
CanaryPlugin. - Canary
Decision - Resolved assignment stored in
ContextunderATTR_CANARY_DECISION. - Canary
Plugin - Compiled canary & feature-flag evaluation engine backing
CanaryRequestHookandCanaryResponseHook. - Canary
Request Hook - Opt-in request middleware assigning deterministic experiment variants into
Context. - Canary
Response Hook - Opt-in response middleware emitting
X-VariantandVaryheaders for matched experiments. - Experiment
Rule - Rollout or A/B experiment definition scoped to a path prefix.
- Variant
Weight - Weighted variant arm inside an
ExperimentRule.
Constants§
- ATTR_
CANARY_ DECISION - Context attribute key storing the resolved [
CanaryDecision]. - BASIS_
POINTS_ MAX - Basis-point denominator (
10_000= 100.00%). - DEFAULT_
OVERRIDE_ HEADER - Default forced override header (
x-canary-override). - DEFAULT_
STICKY_ HEADER - Default sticky bucketing header (
x-user-id). - DEFAULT_
VARIANT_ HEADER - Default response header advertising selected experiment variant (
x-variant).
Functions§
- bucket_
basis_ points - Computes a deterministic basis-point bucket in
0..10_000fromexperimentandsubject.