kibana/packages/kbn-eslint-plugin-telemetry
Pierre Gayvallet 8a9992969a
[8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/obs-ux-infra_services-team (#202830) (#205231)
# Backport

This will backport the following commits from `main` to `8.x`:
- [Sustainable Kibana Architecture: Move modules owned by
`@elastic/obs-ux-infra_services-team`
(#202830)](https://github.com/elastic/kibana/pull/202830)

<!--- Backport version: 8.9.8 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-29T08:58:37Z","message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/obs-ux-infra_services-team` (#202830)\n\n##
Summary\r\n\r\nThis PR aims at relocating some of the Kibana modules
(plugins and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
6 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/apm-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/apm_data_access` |\r\n|
`@kbn/apm-plugin` | `x-pack/solutions/observability/plugins/apm` |\r\n|
`@kbn/inventory-plugin`
|\r\n`x-pack/solutions/observability/plugins/inventory` |\r\n|
`@kbn/metrics-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/metrics_data_access` |\r\n|
`@kbn/profiling-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/profiling_data_access`
|\r\n| `@kbn/profiling-plugin`
|\r\n`x-pack/solutions/observability/plugins/profiling`
|\r\n\r\n\r\n\r\n\r\n#### 6 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/apm-data-view`
|\r\n`src/platform/packages/shared/kbn-apm-data-view` |\r\n|
`@kbn/apm-types`
|\r\n`x-pack/solutions/observability/packages/kbn-apm-types` |\r\n|
`@kbn/apm-utils` | `src/platform/packages/shared/kbn-apm-utils` |\r\n|
`@kbn/lens-embeddable-utils`
|\r\n`src/platform/packages/shared/kbn-lens-embeddable-utils` |\r\n|
`@kbn/profiling-utils`
|\r\n`src/platform/packages/shared/kbn-profiling-utils` |\r\n|
`@kbn/shared-svg` | `src/platform/packages/shared/kbn-shared-svg`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.buildkite/ftr_oblt_stateful_configs.yml\r\n./.buildkite/scripts/steps/functional/apm_cypress.sh\r\n./.buildkite/scripts/steps/functional/inventory_cypress.sh\r\n./.buildkite/scripts/steps/functional/profiling_cypress.sh\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.gitignore\r\n./docs/developer/plugin-list.asciidoc\r\n./oas_docs/overlays/alerting.overlays.yaml\r\n./oas_docs/scripts/merge_ess_oas.js\r\n./oas_docs/scripts/merge_serverless_oas.js\r\n./package.json\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-eslint-plugin-telemetry/helpers/get_app_name.test.ts\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/precommit_hook/casing_check_config.js\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-profiling-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-shared-svg/jest.config.js\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_index_info.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_significant_term_p_values.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_top_terms.ts\r\n./x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts\r\n./x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/apm_queries.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/linting.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/local_setup.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/testing.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/updating_functional_tests_archives.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md\r\n./x-pack/solutions/observability/plugins/apm/ftr_e2e/README.md\r\n./x-pack/solutions/observability/plugins/apm/jest.config.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts\r\n./x-pack/solutions/observability/plugins/apm/scripts/precommit.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/telemetry/main.ts\r\n./x-pack/solutions/observability/plugins/apm_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/exploratory_view/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/inventory/README.md\r\n./x-pack/solutions/observability/plugins/inventory/jest.config.js\r\n./x-pack/solutions/observability/plugins/metrics_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/profiling/README.md\r\n./x-pack/solutions/observability/plugins/profiling/e2e/README.md\r\n./x-pack/solutions/observability/plugins/profiling/jest.config.js\r\n./x-pack/solutions/observability/plugins/profiling_data_access/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution/server/utils/build_query/calculate_timeseries_interval.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-apm-data-view/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-apm-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-profiling-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-profiling-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-shared-svg/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-shared-svg/tsconfig.json:2\r\nx-pack/solutions/observability/packages/kbn-apm-types/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:17\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:22\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:130\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:222\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:78\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:96\r\nx-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md:42\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/README.md:3\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts:125\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:15\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:33\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:38\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:50\r\nx-pack/solutions/observability/plugins/apm/scripts/shared/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/apm_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/inventory/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/jest.config.js:10\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/metrics_data_access/jest.config.js:10\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/profiling/README.md:52\r\nx-pack/solutions/observability/plugins/profiling/e2e/README.md:3\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:11\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling/jest.config.js:10\r\nx-pack/solutions/observability/plugins/profiling/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/profiling_data_access/tsconfig.json:2\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8899fb8fa2d667d3ee36a3be28fb284de5056afc","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","Team:obs-ux-management","plugin
groups"],"number":202830,"url":"https://github.com/elastic/kibana/pull/202830","mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/obs-ux-infra_services-team` (#202830)\n\n##
Summary\r\n\r\nThis PR aims at relocating some of the Kibana modules
(plugins and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
6 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/apm-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/apm_data_access` |\r\n|
`@kbn/apm-plugin` | `x-pack/solutions/observability/plugins/apm` |\r\n|
`@kbn/inventory-plugin`
|\r\n`x-pack/solutions/observability/plugins/inventory` |\r\n|
`@kbn/metrics-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/metrics_data_access` |\r\n|
`@kbn/profiling-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/profiling_data_access`
|\r\n| `@kbn/profiling-plugin`
|\r\n`x-pack/solutions/observability/plugins/profiling`
|\r\n\r\n\r\n\r\n\r\n#### 6 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/apm-data-view`
|\r\n`src/platform/packages/shared/kbn-apm-data-view` |\r\n|
`@kbn/apm-types`
|\r\n`x-pack/solutions/observability/packages/kbn-apm-types` |\r\n|
`@kbn/apm-utils` | `src/platform/packages/shared/kbn-apm-utils` |\r\n|
`@kbn/lens-embeddable-utils`
|\r\n`src/platform/packages/shared/kbn-lens-embeddable-utils` |\r\n|
`@kbn/profiling-utils`
|\r\n`src/platform/packages/shared/kbn-profiling-utils` |\r\n|
`@kbn/shared-svg` | `src/platform/packages/shared/kbn-shared-svg`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.buildkite/ftr_oblt_stateful_configs.yml\r\n./.buildkite/scripts/steps/functional/apm_cypress.sh\r\n./.buildkite/scripts/steps/functional/inventory_cypress.sh\r\n./.buildkite/scripts/steps/functional/profiling_cypress.sh\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.gitignore\r\n./docs/developer/plugin-list.asciidoc\r\n./oas_docs/overlays/alerting.overlays.yaml\r\n./oas_docs/scripts/merge_ess_oas.js\r\n./oas_docs/scripts/merge_serverless_oas.js\r\n./package.json\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-eslint-plugin-telemetry/helpers/get_app_name.test.ts\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/precommit_hook/casing_check_config.js\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-profiling-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-shared-svg/jest.config.js\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_index_info.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_significant_term_p_values.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_top_terms.ts\r\n./x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts\r\n./x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/apm_queries.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/linting.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/local_setup.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/testing.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/updating_functional_tests_archives.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md\r\n./x-pack/solutions/observability/plugins/apm/ftr_e2e/README.md\r\n./x-pack/solutions/observability/plugins/apm/jest.config.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts\r\n./x-pack/solutions/observability/plugins/apm/scripts/precommit.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/telemetry/main.ts\r\n./x-pack/solutions/observability/plugins/apm_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/exploratory_view/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/inventory/README.md\r\n./x-pack/solutions/observability/plugins/inventory/jest.config.js\r\n./x-pack/solutions/observability/plugins/metrics_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/profiling/README.md\r\n./x-pack/solutions/observability/plugins/profiling/e2e/README.md\r\n./x-pack/solutions/observability/plugins/profiling/jest.config.js\r\n./x-pack/solutions/observability/plugins/profiling_data_access/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution/server/utils/build_query/calculate_timeseries_interval.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-apm-data-view/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-apm-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-profiling-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-profiling-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-shared-svg/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-shared-svg/tsconfig.json:2\r\nx-pack/solutions/observability/packages/kbn-apm-types/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:17\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:22\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:130\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:222\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:78\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:96\r\nx-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md:42\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/README.md:3\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts:125\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:15\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:33\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:38\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:50\r\nx-pack/solutions/observability/plugins/apm/scripts/shared/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/apm_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/inventory/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/jest.config.js:10\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/metrics_data_access/jest.config.js:10\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/profiling/README.md:52\r\nx-pack/solutions/observability/plugins/profiling/e2e/README.md:3\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:11\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling/jest.config.js:10\r\nx-pack/solutions/observability/plugins/profiling/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/profiling_data_access/tsconfig.json:2\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8899fb8fa2d667d3ee36a3be28fb284de5056afc"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202830","number":202830,"mergeCommit":{"message":"Sustainable
Kibana Architecture: Move modules owned by
`@elastic/obs-ux-infra_services-team` (#202830)\n\n##
Summary\r\n\r\nThis PR aims at relocating some of the Kibana modules
(plugins and\r\npackages) into a new folder structure, according to the
_Sustainable\r\nKibana Architecture_ initiative.\r\n\r\n>
[!IMPORTANT]\r\n> * We kindly ask you to:\r\n> * Manually fix the errors
in the error section below (if there are\r\nany).\r\n> * Search for the
`packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\r\nsource
code (Babel and Eslint config files), and update
them\r\nappropriately.\r\n> * Manually
review\r\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to
ensure that\r\nany CI pipeline customizations continue to be correctly
applied after\r\nthe changed path names\r\n> * Review all of the updated
files, specially the `.ts` and `.js` files\r\nlisted in the sections
below, as some of them contain relative paths\r\nthat have been
updated.\r\n> * Think of potential impact of the move, including tooling
and\r\nconfiguration files that can be pointing to the relocated
modules. E.g.:\r\n> * customised eslint rules\r\n> * docs pointing to
source code\r\n\r\n> [!NOTE]\r\n> * This PR has been
auto-generated.\r\n> * Any manual contributions will be lost if the
'relocate' script is\r\nre-run.\r\n> * Try to obtain the missing reviews
/ approvals before applying manual\r\nfixes, and/or keep your changes in
a .patch / git stash.\r\n> * Please
use\r\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\r\nSlack
channel for feedback.\r\n\r\nAre you trying to rebase this PR to solve
merge conflicts? Please follow\r\nthe steps
describe\r\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\r\n\r\n####
6 plugin(s) are going to be relocated:\r\n\r\n| Id | Target folder
|\r\n| -- | ------------- |\r\n| `@kbn/apm-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/apm_data_access` |\r\n|
`@kbn/apm-plugin` | `x-pack/solutions/observability/plugins/apm` |\r\n|
`@kbn/inventory-plugin`
|\r\n`x-pack/solutions/observability/plugins/inventory` |\r\n|
`@kbn/metrics-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/metrics_data_access` |\r\n|
`@kbn/profiling-data-access-plugin`
|\r\n`x-pack/solutions/observability/plugins/profiling_data_access`
|\r\n| `@kbn/profiling-plugin`
|\r\n`x-pack/solutions/observability/plugins/profiling`
|\r\n\r\n\r\n\r\n\r\n#### 6 packages(s) are going to be
relocated:\r\n\r\n| Id | Target folder |\r\n| -- | ------------- |\r\n|
`@kbn/apm-data-view`
|\r\n`src/platform/packages/shared/kbn-apm-data-view` |\r\n|
`@kbn/apm-types`
|\r\n`x-pack/solutions/observability/packages/kbn-apm-types` |\r\n|
`@kbn/apm-utils` | `src/platform/packages/shared/kbn-apm-utils` |\r\n|
`@kbn/lens-embeddable-utils`
|\r\n`src/platform/packages/shared/kbn-lens-embeddable-utils` |\r\n|
`@kbn/profiling-utils`
|\r\n`src/platform/packages/shared/kbn-profiling-utils` |\r\n|
`@kbn/shared-svg` | `src/platform/packages/shared/kbn-shared-svg`
|\r\n\r\n\r\n<details >\r\n<summary>Updated
references</summary>\r\n\r\n```\r\n./.buildkite/ftr_oblt_stateful_configs.yml\r\n./.buildkite/scripts/steps/functional/apm_cypress.sh\r\n./.buildkite/scripts/steps/functional/inventory_cypress.sh\r\n./.buildkite/scripts/steps/functional/profiling_cypress.sh\r\n./.eslintrc.js\r\n./.github/paths-labeller.yml\r\n./.gitignore\r\n./docs/developer/plugin-list.asciidoc\r\n./oas_docs/overlays/alerting.overlays.yaml\r\n./oas_docs/scripts/merge_ess_oas.js\r\n./oas_docs/scripts/merge_serverless_oas.js\r\n./package.json\r\n./packages/kbn-eslint-plugin-i18n/helpers/get_i18n_identifier_from_file_path.test.ts\r\n./packages/kbn-eslint-plugin-telemetry/helpers/get_app_name.test.ts\r\n./packages/kbn-repo-packages/package-map.json\r\n./packages/kbn-ts-projects/config-paths.json\r\n./src/dev/precommit_hook/casing_check_config.js\r\n./src/dev/storybook/aliases.ts\r\n./src/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-profiling-utils/jest.config.js\r\n./src/platform/packages/shared/kbn-shared-svg/jest.config.js\r\n./tsconfig.base.json\r\n./x-pack/.i18nrc.json\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_index_info.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_significant_term_p_values.ts\r\n./x-pack/platform/packages/shared/ml/aiops_log_rate_analysis/queries/fetch_top_terms.ts\r\n./x-pack/platform/plugins/private/data_visualizer/public/application/index_data_visualizer/utils/saved_search_utils.ts\r\n./x-pack/solutions/observability/plugins/apm/common/rules/apm_rule_types.ts\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/apm_queries.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/linting.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/local_setup.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/testing.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/updating_functional_tests_archives.md\r\n./x-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md\r\n./x-pack/solutions/observability/plugins/apm/ftr_e2e/README.md\r\n./x-pack/solutions/observability/plugins/apm/jest.config.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts\r\n./x-pack/solutions/observability/plugins/apm/scripts/precommit.js\r\n./x-pack/solutions/observability/plugins/apm/scripts/telemetry/main.ts\r\n./x-pack/solutions/observability/plugins/apm_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/exploratory_view/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/inventory/README.md\r\n./x-pack/solutions/observability/plugins/inventory/jest.config.js\r\n./x-pack/solutions/observability/plugins/metrics_data_access/jest.config.js\r\n./x-pack/solutions/observability/plugins/observability/common/annotations.ts\r\n./x-pack/solutions/observability/plugins/profiling/README.md\r\n./x-pack/solutions/observability/plugins/profiling/e2e/README.md\r\n./x-pack/solutions/observability/plugins/profiling/jest.config.js\r\n./x-pack/solutions/observability/plugins/profiling_data_access/jest.config.js\r\n./x-pack/solutions/security/plugins/security_solution/server/utils/build_query/calculate_timeseries_interval.ts\r\n./yarn.lock\r\n.github/CODEOWNERS\r\n```\r\n\r\n</details><details
>\r\n<summary>Updated relative
paths</summary>\r\n\r\n```\r\nsrc/platform/packages/shared/kbn-apm-data-view/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-apm-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-lens-embeddable-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-profiling-utils/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-profiling-utils/tsconfig.json:2\r\nsrc/platform/packages/shared/kbn-shared-svg/jest.config.js:12\r\nsrc/platform/packages/shared/kbn-shared-svg/tsconfig.json:2\r\nx-pack/solutions/observability/packages/kbn-apm-types/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:17\r\nx-pack/solutions/observability/plugins/apm/dev_docs/telemetry.md:22\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:130\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:222\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:78\r\nx-pack/solutions/observability/plugins/apm/dev_docs/testing.md:96\r\nx-pack/solutions/observability/plugins/apm/dev_docs/vscode_setup.md:42\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/README.md:3\r\nx-pack/solutions/observability/plugins/apm/ftr_e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm/scripts/infer_route_return_types/index.ts:125\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:15\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:33\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:38\r\nx-pack/solutions/observability/plugins/apm/scripts/precommit.js:50\r\nx-pack/solutions/observability/plugins/apm/scripts/shared/read_kibana_config.ts:16\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/apm_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/apm_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/inventory/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/jest.config.js:10\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/inventory/tsconfig.json:7\r\nx-pack/solutions/observability/plugins/metrics_data_access/jest.config.js:10\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/metrics_data_access/tsconfig.json:6\r\nx-pack/solutions/observability/plugins/profiling/README.md:52\r\nx-pack/solutions/observability/plugins/profiling/e2e/README.md:3\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:11\r\nx-pack/solutions/observability/plugins/profiling/e2e/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling/jest.config.js:10\r\nx-pack/solutions/observability/plugins/profiling/tsconfig.json:2\r\nx-pack/solutions/observability/plugins/profiling_data_access/jest.config.js:12\r\nx-pack/solutions/observability/plugins/profiling_data_access/tsconfig.json:2\r\n```\r\n\r\n</details>\r\n\r\n---------\r\n\r\nCo-authored-by:
kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"8899fb8fa2d667d3ee36a3be28fb284de5056afc"}}]}]
BACKPORT-->

---------

Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-12-29 13:10:37 -06:00
..
helpers [8.x] Sustainable Kibana Architecture: Move modules owned by @elastic/obs-ux-infra_services-team (#202830) (#205231) 2024-12-29 13:10:37 -06:00
rules Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
index.ts Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
jest.config.js Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
kibana.jsonc Update new codeowners for Obs team changes (#170182) 2023-11-08 14:30:17 +00:00
package.json Adds AGPL 3.0 license (#192025) 2024-09-06 19:02:41 -06:00
README.mdx ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00
tsconfig.json ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00

---
id: kibDevDocsOpsEslintPluginTelemetry
slug: /kibana-dev-docs/ops/kbn-eslint-plugin-telemetry
title: '@kbn/eslint-plugin-telemetry'
description: Custom ESLint rules to support telemetry in the Kibana repository
tags: ['kibana', 'dev', 'contributor', 'operations', 'eslint', 'telemetry']
---

`@kbn/eslint-plugin-telemetry` is an ESLint plugin providing custom rules for validating JSXCode in the Kibana repo to make sure it can be instrumented for the purposes of telemetry.

## `@kbn/telemetry/instrumentable_elements_should_be_instrumented`

This rule warns engineers to add `data-test-subj` to instrumentable components. It currently suggests the most widely used EUI components (`EuiButton`, `EuiFieldText`, etc), but can be expanded with often-used specific components used in the Kibana repo.