-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
fix(integrations): Add default for ExtraErrorData
's depth
option
#4487
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
Conversation
Ensure that depth option is by default set to 3. That wouldn't happen if the user provided empty object as options. Fixes getsentry#4186
@@ -18,10 +18,18 @@ export class ExtraErrorData implements Integration { | |||
*/ | |||
public name: string = ExtraErrorData.id; | |||
|
|||
/** JSDoc */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure what purpose does this have but I saw it the debug.ts
's code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s to get around writing doc strings. We can leave it like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch!
@@ -18,10 +18,18 @@ export class ExtraErrorData implements Integration { | |||
*/ | |||
public name: string = ExtraErrorData.id; | |||
|
|||
/** JSDoc */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s to get around writing doc strings. We can leave it like this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the contribution!
ExtraErrorData
's depth
option
Ensure that
ExtraErrorData
'sdepth
option is by default set to 3. Currently, if the user provides an empty options object,depth
gets set toundefined
.Fixes #4186