azure appinsights自定义数据trackexception错误消息是否有任何限制 [英] is there any limit on azure appinsights custom data trackexception error message

查看:75
本文介绍了azure appinsights自定义数据trackexception错误消息是否有任何限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用azure应用洞察力登录我的Web服务应用程序,我们能够记录异常消息,并且在记录post方法主体对象时也没有问题. 但是我们试图记录大型对象,但部分内容被截断并显示在蔚蓝的门户中.在我的应用程序端验证,我们正在传递序列化的完整对象值, 代码:

I am using azure app insights for logging in my webservice application, we are able to log the exception message and no issues in log the post method body object as well. But we are trying to log the large body object , the partiall content is truncated and shown in the azure portal. In my application side verified we are passing the serialized full object value, Code :

Dictionary<string, string> requestBodyData = new Dictionary<string, string>();
requestBodyData = ex.Data.Cast<System.Collections.DictionaryEntry>().ToDictionary(de => (string)de.Key, de => (string)de.Value);

(new Microsoft.ApplicationInsights.TelemetryClient()).TrackException(ex, requestBodyData, null);

requestBodyData - is carrying the post object data.

好像发布数据的长度限制是1KB,请您帮我了解一下这种行为吗?

It seems post data length limit is 1KB like that, Could you please help me understand this behavior?

推荐答案

我发现

I found this change on GitHub to set error message length to 1024 symbols.

我希望此限制很快就会更改为32k,您可以在GitHub上观看此存储库(ApplicationInsights-Home)来抓住合适的时机.

I expect that this limit will be changed to 32k pretty soon, you can watch this repo on GitHub (ApplicationInsights-Home) to catch the right moment.

这篇关于azure appinsights自定义数据trackexception错误消息是否有任何限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆