【问题标题】:Sentry additional data哨兵附加数据
【发布时间】:2020-08-28 03:05:41
【问题描述】:

在我添加对象后 ->

Sentry.setExtra('TESTTEST333', { test: [{ test1 : { test2 : {test3: 'a' }}}]});

In Sentry under additional date it shows me
{
   test: [
     [Object]
   ]
}

如何传递整个对象并在哨兵中显示?

【问题讨论】:

    标签: angular sentry


    【解决方案1】:

    您可以使用 JSON.stringify() 将对象转换为字符串。

    Sentry.setExtra('TESTTEST333', JSON.stringify({ test: [{ test1 : { test2 : {test3: 'a' }}}]}));

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-10-11
      • 1970-01-01
      • 2021-08-10
      • 1970-01-01
      • 2014-05-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多