Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Add tags to connector run failures indicating if it's user…
… or framework error (elastic#197818) (elastic#198006) # Backport This will backport the following commits from `main` to `8.x`: - [Add tags to connector run failures indicating if it's user or framework error (elastic#197818)](elastic#197818) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Mike Côté","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-28T14:21:25Z","message":"Add tags to connector run failures indicating if it's user or framework error (elastic#197818)\n\nResolves https://github.com/elastic/kibana/issues/197315\r\n\r\nIn this PR, I'm adding the following tags to the connector failure logs\r\nso it makes it easier to filter for systematic errors.\r\n\r\n- `connector-run-failed` for logs specific to connector run failures\r\n- `user-error` for errors caused by the user\r\n- `framework-error` for systematic errors\r\n\r\n## To verify\r\n\r\nYou can either use the jest test to observe the returned flags or set\r\nyour logging to JSON and make connectors fail.\r\n\r\nkibana.yml to set logging to JSON\r\n```\r\nlogging:\r\n appenders:\r\n json-layout:\r\n type: console\r\n layout:\r\n type: json\r\n root:\r\n appenders: [json-layout]\r\n```","sha":"e6bb35ac3d2376b616df4e687517d8ae650dca50","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Feature:Actions","Team:ResponseOps","v9.0.0","backport:prev-minor","v8.17.0"],"title":"Add tags to connector run failures indicating if it's user or framework error","number":197818,"url":"https://github.com/elastic/kibana/pull/197818","mergeCommit":{"message":"Add tags to connector run failures indicating if it's user or framework error (elastic#197818)\n\nResolves https://github.com/elastic/kibana/issues/197315\r\n\r\nIn this PR, I'm adding the following tags to the connector failure logs\r\nso it makes it easier to filter for systematic errors.\r\n\r\n- `connector-run-failed` for logs specific to connector run failures\r\n- `user-error` for errors caused by the user\r\n- `framework-error` for systematic errors\r\n\r\n## To verify\r\n\r\nYou can either use the jest test to observe the returned flags or set\r\nyour logging to JSON and make connectors fail.\r\n\r\nkibana.yml to set logging to JSON\r\n```\r\nlogging:\r\n appenders:\r\n json-layout:\r\n type: console\r\n layout:\r\n type: json\r\n root:\r\n appenders: [json-layout]\r\n```","sha":"e6bb35ac3d2376b616df4e687517d8ae650dca50"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/197818","number":197818,"mergeCommit":{"message":"Add tags to connector run failures indicating if it's user or framework error (elastic#197818)\n\nResolves https://github.com/elastic/kibana/issues/197315\r\n\r\nIn this PR, I'm adding the following tags to the connector failure logs\r\nso it makes it easier to filter for systematic errors.\r\n\r\n- `connector-run-failed` for logs specific to connector run failures\r\n- `user-error` for errors caused by the user\r\n- `framework-error` for systematic errors\r\n\r\n## To verify\r\n\r\nYou can either use the jest test to observe the returned flags or set\r\nyour logging to JSON and make connectors fail.\r\n\r\nkibana.yml to set logging to JSON\r\n```\r\nlogging:\r\n appenders:\r\n json-layout:\r\n type: console\r\n layout:\r\n type: json\r\n root:\r\n appenders: [json-layout]\r\n```","sha":"e6bb35ac3d2376b616df4e687517d8ae650dca50"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Mike Côté <[email protected]>
- Loading branch information