chore: spans added in ast service for RTS calls#39823
Conversation
WalkthroughThe changes add new constants for span naming in the on-load spans class and integrate them into observability code. The modifications update methods in executable and service classes to name and tap reactive streams with Micrometer observations. Additionally, constructors now inject an Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Caller
participant Executor as OnLoadExecutablesUtilCEImpl
participant Micrometer as Micrometer
Client->>Executor: getPossibleEntityReferencesMap()
Executor->>Micrometer: flux.name(GET_POSSIBLE_REFERENCES_FROM_DYNAMIC_BINDING)
Executor->>Micrometer: flux.tap(ObservationRegistry)
Micrometer-->>Executor: Observation recorded
sequenceDiagram
participant Caller as Client
participant Service as AstServiceCEImpl
participant Micrometer as Micrometer
Caller->>Service: getPossibleReferencesFromDynamicBinding(bindings, eval_version)
Service->>Micrometer: .name(AST_SERVICE_CALLING_RTS_API)
Service->>Micrometer: .tap(ObservationRegistry) with tags ("no_of_bindings", "eval_version")
Micrometer-->>Service: Metrics logged
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (4)
🧰 Additional context used🧬 Code Definitions (3)app/server/appsmith-server/src/main/java/com/appsmith/server/services/ce/AstServiceCEImpl.java (1)
app/server/appsmith-server/src/main/java/com/appsmith/server/services/AstServiceImpl.java (2)
app/server/appsmith-server/src/main/java/com/appsmith/server/onload/internal/OnLoadExecutablesUtilCEImpl.java (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🔇 Additional comments (9)
✨ 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
|
## Description > Spans added in AST service for RTS calls, this is done to help us debug SLO alerts for JS object update API Fixes appsmithorg#39799 _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.Datasource" ### 🔍 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/13966111083> > Commit: c695fd1 > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13966111083&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.Datasource` > Spec: > <hr>Thu, 20 Mar 2025 10:16:02 UTC <!-- end of auto-generated comment: Cypress test results --> ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Improved monitoring has been integrated to better track performance during dynamic operations, contributing to a more reliable system. - **Refactor** - Internal service processes have been streamlined to support enhanced observability, ensuring smoother diagnostics and overall stability for a better user experience. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: “sneha122” <“sneha@appsmith.com”>
Description
Fixes #39799
or
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.Datasource"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13966111083
Commit: c695fd1
Cypress dashboard.
Tags:
@tag.DatasourceSpec:
Thu, 20 Mar 2025 10:16:02 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit