Skip to content

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

Merged
merged 1 commit into from
Feb 2, 2022

Conversation

rchl
Copy link
Contributor

@rchl rchl commented Feb 2, 2022

Ensure that ExtraErrorData's depth option is by default set to 3. Currently, if the user provides an empty options object, depth gets set to undefined.

Fixes #4186

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 */
Copy link
Contributor Author

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

Copy link
Member

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.

Copy link
Member

@AbhiPrasad AbhiPrasad left a 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 */
Copy link
Member

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.

Copy link
Member

@lobsterkatie lobsterkatie left a 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!

@lobsterkatie lobsterkatie changed the title fix(integrations): ensure default depth is used when no options provided fix(integrations): Add default for ExtraErrorData's depth option Feb 2, 2022
@lobsterkatie lobsterkatie merged commit e714217 into getsentry:master Feb 2, 2022
lobsterkatie added a commit that referenced this pull request Feb 2, 2022
@rchl rchl deleted the fix/default-depth branch February 2, 2022 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default depth for ExtraErrorData not applied
3 participants