I can set the MaxRetryCount with action.MaxRetryAttempts on an action, but how can I get the actual retry count?
I can see the the count is in the log (marked with arrows on picture)
Not the retry won’t help in your example, as it’s unlikely that the expression will correct itself during retries. The retry option is really only intended for use where the error might correct itself, like for example an external server was temporarily unreachable.