Merge pull request #2094 from appsmithorg/fix/sentry-errors
Prune expensive redux actions and console logs from sentry
This commit is contained in:
commit
854d514359
|
|
@ -138,7 +138,7 @@ export function* errorSaga(
|
|||
|
||||
function logErrorSaga(action: ReduxAction<{ error: ErrorPayloadType }>) {
|
||||
log.debug(`Error in action ${action.type}`);
|
||||
log.error(action.payload.error);
|
||||
if (action.payload) log.error(action.payload.error);
|
||||
}
|
||||
|
||||
function showAlertAboutError(message: string) {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,23 @@ export const appInitializer = () => {
|
|||
FeatureFlag.initialize(appsmithConfigs.featureFlag);
|
||||
|
||||
if (appsmithConfigs.sentry.enabled) {
|
||||
Sentry.init(appsmithConfigs.sentry);
|
||||
Sentry.init({
|
||||
...appsmithConfigs.sentry,
|
||||
beforeBreadcrumb(breadcrumb, hint) {
|
||||
if (breadcrumb.category === "console" && breadcrumb.level !== "error") {
|
||||
return null;
|
||||
}
|
||||
if (breadcrumb.category === "redux.action") {
|
||||
if (
|
||||
breadcrumb.data &&
|
||||
breadcrumb.data.type === "SET_EVALUATED_TREE"
|
||||
) {
|
||||
breadcrumb.data = undefined;
|
||||
}
|
||||
}
|
||||
return breadcrumb;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
if (appsmithConfigs.smartLook.enabled) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user