Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set ruleType thrown errors as Framework error #179656

Merged

Conversation

ersin-erdal
Copy link
Contributor

@ersin-erdal ersin-erdal commented Mar 28, 2024

This is a follow-on PR of #174035.

As we decided to set the errors reported by addLastRunError as Framework Error, this PR aligns the other errors thrown by the ruleTypes by switching from USER to FRAMEWORK.

To verify

Throw an error in any of the ruleType executor, and expect to see framework error metrics in :
/api/task_manager/metrics?reset=false

@ersin-erdal ersin-erdal self-assigned this Mar 28, 2024
@ersin-erdal ersin-erdal added release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.14.0 labels Mar 28, 2024
@ersin-erdal
Copy link
Contributor Author

/ci

@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @ersin-erdal

Copy link
Member

@pmuellr pmuellr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM; tested as with the previous PR, can now see the framework vs user errors :-)

A little concerned about the lack of needed changes to function tests! Based on lack of need to change function tests for the previous PR as well, let's open an issue to add some tests for this functionality?

@ersin-erdal ersin-erdal merged commit 531dd0f into elastic:main Mar 29, 2024
40 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Mar 29, 2024
@ersin-erdal ersin-erdal deleted the 179551-set-ruletype-errors-to-fw branch March 29, 2024 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.14.0
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

5 participants