chore: Add plugin name to server execution metrics#39413
chore: Add plugin name to server execution metrics#39413ApekshaBhosale merged 8 commits intoreleasefrom
Conversation
WalkthroughThis pull request introduces a new field in the Changes
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (5)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 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
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java (1)
302-303: Consider using switchIfEmpty for error handling.When deriving ExecuteActionDTO from cached parts, consider adding error handling for empty cases.
Mono<ExecuteActionDTO> executeActionDTOMono = - cachedPartsMono.flatMap(parts -> createExecuteActionDTO(Flux.fromIterable(parts))); + cachedPartsMono.flatMap(parts -> createExecuteActionDTO(Flux.fromIterable(parts))) + .switchIfEmpty(Mono.error(new AppsmithException(AppsmithError.INVALID_PARAMETER, "No parts found")));
📜 Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/ExecuteActionMetaDTO.java(2 hunks)app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (5)
- GitHub Check: perform-test / client-build / client-build
- GitHub Check: perform-test / rts-build / build
- GitHub Check: perform-test / server-build / server-unit-tests
- GitHub Check: server-unit-tests / server-unit-tests
- GitHub Check: server-spotless / spotless-check
🔇 Additional comments (5)
app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/ExecuteActionMetaDTO.java (1)
3-4: LGTM! The new plugin field improves code efficiency.The addition of the
pluginfield to store a reactive reference to the plugin is a good optimization that helps avoid redundant plugin fetching during action execution.Also applies to: 8-9, 19-19
app/server/appsmith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java (4)
291-293: LGTM! Efficient caching of multipart data.The caching of multipart data using
collectList().cache()is a good optimization that prevents multiple reads of the same data.
306-310: LGTM! Efficient plugin caching strategy.The plugin retrieval and caching strategy is well implemented:
- Uses proper reactive patterns with
flatMapandcache()- Stores the plugin in the metadata DTO for reuse
312-319: LGTM! Good observability with plugin name tagging.The addition of plugin name tagging improves observability in metrics, which is valuable for monitoring and debugging.
345-346: LGTM! Removed redundant plugin fetching.Good cleanup by removing the redundant plugin fetching in favor of using the cached plugin from the metadata DTO.
Failed server tests
|
app/server/appsmith-server/src/main/java/com/appsmith/server/dtos/ExecuteActionMetaDTO.java
Outdated
Show resolved
Hide resolved
...ith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java
Outdated
Show resolved
Hide resolved
...ith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java
Outdated
Show resolved
Hide resolved
...ith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java
Outdated
Show resolved
Hide resolved
Failed server tests
|
...ith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java
Show resolved
Hide resolved
...ith-server/src/main/java/com/appsmith/server/solutions/ce/ActionExecutionSolutionCEImpl.java
Outdated
Show resolved
Hide resolved
Failed server tests
|
|
@ApekshaBhosale can you please also check the failing server tests |
Failed server tests
|
There was a problem hiding this comment.
@ApekshaBhosale can you please update the description of this PR? Rest everything LGTM.
## Description Adding plugin name to the custom micrometer metrics. Fetching plugin name at the start of the execute call and avoiding to be called from inner functions. 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 --> > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: <https://github.com/appsmithorg/appsmith/actions/runs/13582634663> > Commit: 3908bbe > <a href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=13582634663&attempt=1" target="_blank">Cypress dashboard</a>. > Tags: `@tag.All` > Spec: > <hr>Fri, 28 Feb 2025 07:43:34 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** - Enhanced asynchronous processing for action executions to improve performance and reliability. - Implemented caching for multipart data and refined plugin data tagging, providing streamlined operations and clearer tracking during action execution. - Added a new property to hold a reference to a Plugin object in the action execution metadata. - Improved plugin retrieval process for action executions, enhancing efficiency and observability. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Adding plugin name to the custom micrometer metrics. Fetching plugin name at the start of the execute call and avoiding to be called from inner functions.
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.All"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/13582634663
Commit: 3908bbe
Cypress dashboard.
Tags:
@tag.AllSpec:
Fri, 28 Feb 2025 07:43:34 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit