-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Deeply Nested objects aren't being serialised #2539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@drwharris, unfortunately, you are correct. We had to update the normalization process about 3 months ago in this PR #2404 and it effectively clashed with
It does, however,
https://docs.sentry.io/platforms/javascript/#extraerrordata it's missing the above fact. I will update it soon.
Default Sorry for the inconvenience. We had to patch this quite rapidly back then. |
Closing the issue, as it seems like the original issue has been resolved. |
hi @kamilogorek, so the integration |
For my current init options of Sentry. Sentry.init({
environment: get("NODE_ENV").asString(),
normalizeDepth: get("SENTRY_NORMALIZE_DEPTH").asIntPositive(),
integrations: (integrations) => [
...integrations,
new Dedupe(),
new ReportingObserver(),
new CaptureConsole({ levels: ["warn", "error"] }),
],
}); I don't exactly know exactly which options are necessary and which options are not, according to the latest version of Sentry. |
const err = new Error('whoops');
err.randomNumber = 9;
Sentry.captureException(err); this will attach
|
@kamilogorek You've mentioned that you will update documentation with that info but https://docs.sentry.io/platforms/javascript/configuration/integrations/plugin/#extraerrordata still doesn't mention that It took me a while to figure out why changing |
My bad, I thought I did it - getsentry/sentry-docs#4247 |
Thanks :) |
This is in fact not fixed, but is on our list for our upcoming v7 major release. Reopening. (Note to future self: Make sure this fix applies to |
[ X] Review the documentation: https://docs.sentry.io/
https://docs.sentry.io/platforms/javascript/#extraerrordata
[X ] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
I reported it here previously Deeply Nested objects aren't being serialised #1964
[X ] Use the latest release: https://github.com/getsentry/sentry-javascript/releases
5.15.4
[X ] Provide a link to the affected event from your Sentry account
https://sentry.io/organizations/systema-ai-pty-ltd/issues/1599729260/events/c5746441802a4762a31f839bfb24e9cc/
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)Version:
Description
This seems to have regressed. I have this code to setup Sentry:
And I get this
A quick search finds me #2417 but not why. This seems to be my issue as in the end I am calling setExtra and always have (even in my original issue) so I am going to see if does actually fix it but...
Why does the ExtraErrorData({ depth: 10 }) option no longer work?
Why did this change?
Where is the documentation on normalizeDepth?
What should I actually be doing now? Do I need
Sentry.init({
...
integrations: [new Sentry.Integrations.ExtraErrorData({ depth: 10 })],
normalizeDepth: 5
});
or just
Sentry.init({
...
normalizeDepth: 5
});
The text was updated successfully, but these errors were encountered: