【问题标题】:Application insights to Log analytics customDimentions cuts stacktrace data日志分析自定义维度的应用程序洞察力削减堆栈跟踪数据
【发布时间】:2018-08-13 04:08:28
【问题描述】:

您好,我想知道为什么当我使用 Application Insight 将堆栈跟踪记录到日志分析中时,它会被截断?

正如你在图片中看到的那样,由于某种原因,我没有得到整个堆栈跟踪。

我在我的应用程序中这样记录它:

        catch (Exception e)
        {
            //create a dictionary to store the json string
            var customDataDict = new Dictionary<string, string>();

            customDataDict.Add("Exception StackTrace", e.StackTrace);

            // Send the exception telemetry:
            telemetry.TrackException(e, customDataDict);

            return new HttpResponseMessage(HttpStatusCode.BadRequest);
        }

我的堆栈跟踪应该如下所示:

在 C:\Users\John\Documents\Visual Studio 2015\Projects\TestAPILogging\TestAPILogging\Controllers\LoggingApiController.cs:line 43 中的 TestAPILogging.Controllers.LoggingApiController.d__0.MoveNext() 处

我错过了什么吗?可以保存多少个字符有限制吗?

【问题讨论】:

    标签: c# asp.net-web-api azure-application-insights azure-log-analytics


    【解决方案1】:

    虽然there are size limits,但我认为情况并非如此。 将查询结果投影到在线网格可能会截断一些长记录

    数据可能存在,但您必须查询、投影或导出数据才能确定。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-23
      • 1970-01-01
      • 1970-01-01
      • 2018-01-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多