Identifying fault injected requests

Hi! I have setup a VirtualService to inject faults to 50% of requests going to a given service. I would like to be able to determine which requests have been injected, for example with a header.
So far I’ve tried adding two destinations with 50% weight to a route and add headers to one of them, but then the fault applies to the whole route so it doesn’t help.
In addition I’ve looked at having multiple Routes, but the split can only be done with a match object, so probabilistic split isn’t possible.
Is there a way to do this with istio?

Thanks in advance!

1 Like

Not sure if this is helpful but the requests affected by fault injection have the FI flag set on them in the telemetry. If you use Kiali you can in the graph click on an edge you are interested in, then in the side-panel select the Flags tab and see it in action.

1 Like

That is exactly what I needed! Thank you so very much @jshaughn!