There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?

1

Closed

IBodyModelValidator should trace

description

The IBodyModelValidator does not write to the trace writer, but it should.

The TraceManager should be modified to wrap the IBodyModelValidator to log the Begin and End for the Validate. The End log should report the final result and ModelState. It should also capture and report exceptions like the other trace wrappers.

Without this, users analyzing the trace are unaware which validator was used, what amount of the time was spent in model validation, where it occurred in the pipeline, or what ModelState changes it made.

comments

Troy, can you take a look and see specifically if exceptions in an IBodyModelValidator are not traced? We are not currently concerned about the other scenarios mentioned in the bug. We just want to find out if exceptions are properly traced.