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.
There are natural PII concerns in auto-collecting POST parameters, and it’s something, as Dan mentioned, you can do yourself with telemetry initializer. That said, please keep upvoting so we can see how many folks are impacted by not having a more streamlined way of collecting POST parameters.
-AppInsights Product Management
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