Sentry additional data

Viewed 400

After I add object in extras ->

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

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

How to pass the whole object and display it inside sentry?

1 Answers

You can convert your object to a string, with JSON.stringify().

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

Related