Statistics Collector - how to record errors

john_young
Participant II

I have an almost pure nodejs proxy, I had to add a Statistics Collector policy to start seeing Dev-App traffic numbers and a custom report will let me see all response codes (success and failure). But I can't get any of the dashboard displays to show Error rates other than 0. Does anyone know how to achieve this?

Thanks

0 1 209
1 REPLY 1

You can return status and error details from Node.js in flow variables and then use Fault Rules and Raise Fault policy to handle the error. See here for a great discussion that might be useful.