diff --git a/app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java b/app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java index d0b79fbbaf..71b299359d 100644 --- a/app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java +++ b/app/server/appsmith-server/src/main/java/com/appsmith/server/exceptions/GlobalExceptionHandler.java @@ -89,6 +89,8 @@ public class GlobalExceptionHandler { if (baseError.getErrorAction() == AppsmithErrorAction.LOG_EXTERNALLY) { Sentry.configureScope(scope -> { baseError.getContextMap().forEach(scope::setTag); + scope.setExtra("downstreamErrorMessage", baseError.getDownstreamErrorMessage()); + scope.setExtra("downstreamErrorCode", baseError.getDownstreamErrorCode()); }); final User user = new User(); user.setEmail(baseError.getContextMap().getOrDefault(MDCFilter.USER_EMAIL, "unknownUser"));