## Description We need to profile a few functions in JSON forms, observed that in some customer's apps the following functions - clearErrors - parseAndSaveFieldState takes as much 10% in main thread scripting. We are adding setError just to check if this function is performant or not as well. Fixes #35228 > [!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.Sanity" ### 🔍 Cypress test results <!-- This is an auto-generated comment: Cypress test results --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/10114403810> > Commit: 90f5c31b2fc05e225cb827ec680c4bd68dc1e95f > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=10114403810&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Sanity` > Spec: > <hr>Fri, 26 Jul 2024 16:46:46 UTC <!-- 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 - **New Features** - Introduced telemetry tracking around function executions to improve observability and performance monitoring. - Enhanced error-clearing logic in the form widget to include telemetry tracing for better analysis. - **Improvements** - Added performance tracking to the `parseAndSaveFieldState` method in the JSONFormWidget for optimized performance insights. <!-- end of auto-generated comment: release notes by coderabbit.ai --> |
||
|---|---|---|
| .. | ||
| client | ||
| server | ||
| util | ||