chore: log evaluation error logs and push execption to sentry#40170
chore: log evaluation error logs and push execption to sentry#40170
Conversation
WalkthroughThe changes enhance error handling across the codebase. The saga-based Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant EvalErrorHandler
participant Logger
participant Sentry
Caller->>EvalErrorHandler: Emit error (e.g., EVAL_TREE_ERROR)
EvalErrorHandler->>Logger: log.error(error)
EvalErrorHandler->>Sentry: captureException(error)
sequenceDiagram
participant EvalTree
participant Logger
EvalTree->>EvalTree: Execute evaluation logic
EvalTree->>EvalTree: Catch error
EvalTree->>Logger: log.error(error)
EvalTree->>EvalTree: Append error object with type EVAL_TREE_ERROR and stack
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms (7)
🔇 Additional comments (10)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
…thorg#40170) ## Description This PR makes sure that any error in evaluation is not supressed by the code and when it happens it does the following - Shows a generic evaluation error to the user as a toast message - Log the error in the main thread console - Send an exception to Sentry Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!CAUTION] > If you modify the content in this section, you are likely to disrupt the CI result for your PR. <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [ ] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Enhanced error logging and reporting to ensure evaluation issues are consistently captured and tracked. - **Chores** - Expanded error diagnostics by including additional context for improved troubleshooting. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
This PR makes sure that any error in evaluation is not supressed by the code and when it happens it does the following
Fixes #
Issue Numberor
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.Sanity"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/14338015962
Commit: 9ed590d
Cypress dashboard.
Tags:
@tag.SanitySpec:
Tue, 08 Apr 2025 16:34:49 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Bug Fixes
Chores