Application Insights tracking only failed ASP.NET MVC Web API requests

前端 未结 1 1509
死守一世寂寞
死守一世寂寞 2021-01-14 05:46

I have a ASP.NET Web API controller that provides a saveAndNew operation.

This class is derived from System.Web.Http.ApiController as expected.

Application I

相关标签:
1条回答
  • 2021-01-14 06:36

    You might want to try removing/commenting out TransferRequestHandler in ApplicationInsights.config file.

    GitHub issue "REST API app can have all requests filtered out" here states that: "commenting out the one line in the ApplicationInsights.config caused successful requests to start getting logged. Web API 2 project.

    <!--<Add>System.Web.Handlers.TransferRequestHandler</Add>-->
    
    0 讨论(0)
提交回复
热议问题