Enabling Web Api Tracing

By default ,Tracing is disabled in web api , tracing incoming request might help to track issues in production environment.

Enabling Tracing :

Install the following package from Nuget :

Microsoft.AspNet.WebApi.Tracing

and have the startup .cs configured as below

config.EnableSystemDiagnosticsTracing();

Trace/Log of incoming request to a controller

Capture