Include "rewritten path" in logs

I’m using the Helm deployment with the following options in order to get more detailed logging on how the HAProxy ingress controller is handling the “path-rewrite” annotations:

 --set controller.logging.traffic.address=stdout \
  --set controller.logging.traffic.format=raw \
  --set controller.logging.traffic.facility=daemon \
  --set controller.config.frontend-config-snippet="log-format '%ci:%cp [%tr] %ft %f %HM %[var(txn.base)] => %b %HM %HPO'"

The objective here is to see the original request path as well as the rewritten request path used to access the backend. Essentially to make sure that we have correctly migrated from the NGINX ingress controller to the HAProxy ingress controller.

The above (specifically the %HPO part) does not actually log the rewritten request path, and so far I have been unable to figure out how to achieve my goal.

I’d really appreciate if someone can help me achieve the goal of including the rewritten request path in the log file so that we can complete our validation of the migration off NGINX.