PromucFlow_constructor/app/client/src/workers/Evaluation
Rajat Agrawal cf18829c7d
chore: add first load telemetry to evaluations (#33989)
## Description
This PR adds an attribute to evaluations span that tells whether the
evaluation is first evaluation on page load or a subsequent one.

This attribute will help us filter evaluations and measure gains in
update evaluations and first page load evaluations separately.


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.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/9381739425>
> Commit: 4cdd01dc24c70aa29b908420e60c984d20b2494d
> Cypress dashboard url: <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=9381739425&attempt=1"
target="_blank">Click here!</a>

<!-- 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**
- Added a conditional check before calling `endSpan` to handle
`parentSpan` in action execution.

- **Refactor**
- Updated types and interfaces related to telemetry data handling to
enhance type safety and clarity.
- Adjusted telemetry data processing to accommodate new
`SpanAttributes`.

- **New Features**
- Introduced filtering for telemetry span data to exclude specific
entries, improving data management.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-06-07 18:38:42 +05:30
..
__tests__ chore: Add override context during runtime params eval (#33809) 2024-05-31 12:59:44 +05:30
dataStore chore: separated tree type into common file to be extended on EE (#27812) 2023-10-10 18:02:17 +05:30
fns fix: function undefined error after resetWidget is called due to sync… (#33600) 2024-05-21 15:43:07 +05:30
handlers chore: add first load telemetry to evaluations (#33989) 2024-06-07 18:38:42 +05:30
JSObject chore: making body and variables as optional props- 31568 (#31665) 2024-03-20 19:03:52 +05:30
domApis.ts chore: update eslint and dependencies then fix revealed errors (#27908) 2023-10-11 10:14:38 +03:00
errorModifier.ts fix: handle clone errors gracefully (#28451) 2023-10-31 23:59:10 +05:30
evalTreeWithChanges.ts chore: Remove config tree from eval worker response (#32900) 2024-04-25 19:43:35 +05:30
evaluate.ts chore: Add override context during runtime params eval (#33809) 2024-05-31 12:59:44 +05:30
evaluation.worker.ts chore: push webworker latencies as a root span (#33115) 2024-05-06 13:24:52 +05:30
evaluationSubstitution.ts
formEval.ts
getEntityForContext.ts chore: create evalContext for module instance CE changes (#29008) 2023-11-22 15:03:00 +05:30
getJSActionForEvalContext.ts chore: create evalContext for module instance CE changes (#29008) 2023-11-22 15:03:00 +05:30
helpers.test.ts feat: Add IFrame widget for Custom EChart and support for custom functions in property pane (#28513) 2023-11-08 19:25:44 +05:30
helpers.ts feat: constrained diff between states (#31847) 2024-03-27 14:37:46 +05:30
indirectEval.ts
ReplayDSL.ts
replayUtils.ts
setters.ts chore: fixed typescript errors which are thrown in EE because of split (#28009) 2023-10-16 14:53:47 +05:30
SetupDOM.ts
types.ts chore: add first load telemetry to evaluations (#33989) 2024-06-07 18:38:42 +05:30
validations.ts fix: remove globalThis usage (#31689) 2024-03-13 14:13:45 +05:30