I’m just upgraded @sentry/browser
from version 5.3.0
to version 5.18.1
and now the depth
option of Integrations.ExtraErrorData
is not respected. I double checked the documentation and didn’t see anything obviously changed.
import * as Sentry from '@sentry/browser';
import * as Integrations from '@sentry/integrations';
Sentry.init({
release: process.env.SENTRY_RELEASE,
environment: process.env.SENTRY_ENVIRONMENT,
dsn: process.env.SENTRY_DSN,
integrations: [
new Integrations.ExtraErrorData({ depth: 10 })
]
});
Sentry.configureScope(scope =>
scope.setExtra('something', {
a: {
b: [1, 2, 3],
c: {
d: 1,
e: 2,
f: 3
}
}
})
);
Sentry.captureException(new Error('Something happened'));
Sentry UI shows the value of something
in Additional Data to be:
{"a":{"c":"[Object]","b":"[Array]"}}
Does anybody have some insight or is this a bug? If so, where do I report this?
Thanks.