Enable collecting POST parameters by configuration
When an exception happens and the details are captured on Application insight, it would be great if POST parameters were available as well.
This feature can be turned off for certain pages via configuration r even posting an extra parameter like Ignore Post Parameters.
This will make sure sensitive application data like login information is not captured.
This feature can only work when a http POST ends up with a 500 error to assist debugging application, to make sure huge data is not captured and never used.
Thank you for the feedback, team is reviewing the item to prioritize it accordingly with other priority features for the semester. We will continue to revisit it and update the status accordingly. Thank you
Dan Petitt commented
I do this by adding a custom ToString to
my models so I don't include massive base64 data, for example, and then I 'trace' every request using a derived ApiController. This means when an exception occurs I can view the "trace for the exception" and see all the data I need to track and debug the issue