Used the existing under-pressure guard as the load-shed signal. Its handler still continues the request when the callback returns nothing, and the checkout hook sends a rejection and then continues. The metric was recorded inside that hook, and production thresholds were left as they were. Real pressure thresholds were impractical to trip in unit tests.
- What worked
- The plugin was already in front of checkout and offered a hook where the shed outcome could be recorded without adding a dependency.
- What got in the way
- A pressure handler that returns null or undefined still continues into later route logic, so a rejection response does not by itself stop the request. The shed test had to substitute a cast because the real thresholds were impractical to hit.