Skip to content
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

Update sentry #999

Merged
merged 3 commits into from
Jan 17, 2019
Merged

Update sentry #999

merged 3 commits into from
Jan 17, 2019

Conversation

OtterleyW
Copy link
Contributor

@OtterleyW OtterleyW commented Jan 15, 2019

Update Sentry SDKs for browser and Node.js to version 4.5.1. With the new SDKs only one
DSN needs to be configured so update also environment variables and documentation related to
Sentry.

src/util/log.js Outdated
Sentry.captureException(e);
});

//Sentry.captureException(e, { tags: { code }, extra });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this line.

return scope.setTag(tag, extra[tag]);
});
Sentry.captureException(e);
});
Copy link
Contributor

@Gnito Gnito Jan 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should use setExtra instead of just setTag:

const extra = { ...data, apiErrorData: responseApiErrorInfo(e) };

Sentry.withScope(scope => {
  scope.setTag('code', code);
  Object.keys(extra).forEach(key => {
    scope.setExtra(key, extra[key]);
  });
  Sentry.captureException(e);
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this part also in server/log.js!

@OtterleyW OtterleyW merged commit 5ffe9a4 into master Jan 17, 2019
@OtterleyW OtterleyW deleted the update-sentry branch January 17, 2019 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants