【发布时间】:2015-12-15 22:26:55
【问题描述】:
我正在使用负载适中的生产系统。跟踪事件和 AI 发送的数量太详细了,以后很难浏览日志。
对服务器的每个请求都有如下信息:
Message='Selected formatter='JsonMediaTypeFormatter', content-type='application/json; charset=utf-8'', Operation=DefaultContentNegotiator.Negotiate
和
Message='Action returned 'RZ.API.Support.Controllers.OperationActionResult`1[System.Collections.Generic.List`1[RZ.Entity.System.ClientMessage]]'', Operation=ReflectedHttpActionDescriptor.ExecuteAsync
每个请求可能有 30 个条目!
我只需要请求类型:
12/16/2015, 9:17:29 AM - REQUEST
GET /api/v1/user/messages
还有结果代码 - 以及我在此过程中所做的任何自定义内容。
所以基本上我想修剪除请求和结果(以及任何错误等)之外的大多数跟踪。
我注意到了 AI 配置中的这个坏男孩:
<Add Type="Microsoft.ApplicationInsights.Web.RequestTrackingTelemetryModule, Microsoft.AI.Web"/>
...但我一辈子都看不到任何关于如何要求它减少发送的东西数量的文档!
非常感谢任何帮助。
约旦。
附:所有额外的日志记录使我们超过了每月 1500 万的计划,我们必须升级!
【问题讨论】:
标签: azure asp.net-web-api azure-application-insights