Skip to main content

Crate hyperlane_plugin_canary

Crate hyperlane_plugin_canary 

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

CanaryConfig
Configuration for CanaryPlugin.
CanaryDecision
Resolved assignment stored in Context under ATTR_CANARY_DECISION.
CanaryPlugin
Compiled canary & feature-flag evaluation engine backing CanaryRequestHook and CanaryResponseHook.
CanaryRequestHook
Opt-in request middleware assigning deterministic experiment variants into Context.
CanaryResponseHook
Opt-in response middleware emitting X-Variant and Vary headers for matched experiments.
ExperimentRule
Rollout or A/B experiment definition scoped to a path prefix.
VariantWeight
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_000 from experiment and subject.