2016-11-25 39 views

回答

3

如果你想记录消息那么你应该使用AI SDK的trackTrace方法,而不是trackEventtrackTrace适用于较长的消息和拥有庞大的限制:(!32K)查看https://github.com/Microsoft/ApplicationInsights-dotnet/blob/master/src/Core/Managed/Shared/Extensibility/Implementation/Property.cs#L25

trackEvent旨在为名为“事件”,如“打开文件”或“点击重试”或“取消frobulating”,您可能希望制作图表,并随着时间的推移跟踪事物​​的使用情况。

您可以将自定义属性(字符串键,字符串值)和自定义指标(字符串键,双值)附加到任何内容。如果设置在SDK中的东西operationId场,与同operationId什么都可以很容易地通过查询发现一起,或在天青门户网站或在Visual Studio可视化: track operation

0

最大极限确实有关于长度不限。例如,事件的Name属性的限制是512个字符。请参阅https://github.com/Microsoft/ApplicationInsights-dotnet/blob/master/src/Core/Managed/Shared/Extensibility/Implementation/Property.cs#L23

您可以将它拆分到子字符串中并放入属性集合中,每个集合值的长度为8 * 1024。当我请求它时,我将它作为提示。见https://social.msdn.microsoft.com/Forums/en-US/84bd5ade-0b21-47cc-9b39-c6c7a292d87e/dependencytelemetry-sql-command-gets-truncated?forum=ApplicationInsights。从来没有尝试过,但

+0

是极限适用于节点JS AppInsights也? – Ganesh

+0

是的。它由AI的基础存储定义 –