Fix typo; Fix filter function signature in expample

 - Fix typo
 - Fix filter function signature in example. First argument in filter function is $retries variable not $event.