Skip to content

Enable execution context tracking for SLO, infra and synthetics plugins#204939

Merged
maryam-saeidi merged 5 commits intoelastic:mainfrom
maryam-saeidi:enable-default-execution-tracking
Jan 3, 2025
Merged

Enable execution context tracking for SLO, infra and synthetics plugins#204939
maryam-saeidi merged 5 commits intoelastic:mainfrom
maryam-saeidi:enable-default-execution-tracking

Conversation

@maryam-saeidi
Copy link
Copy Markdown
Member

@maryam-saeidi maryam-saeidi commented Dec 19, 2024

Summary

This PR enables default execution context tracking (which was added in this PR) for the following plugins:

  • SLO
  • Infra
  • Synthetics
Plugin Before After
SLO image image
Synthetics image image
Infra > Inventory image image
Infra > Hosts image image

@maryam-saeidi maryam-saeidi added release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor labels Dec 19, 2024
@maryam-saeidi maryam-saeidi self-assigned this Dec 19, 2024
@maryam-saeidi maryam-saeidi requested a review from a team as a code owner December 19, 2024 13:23
@maryam-saeidi maryam-saeidi requested a review from a team December 19, 2024 13:23
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. labels Dec 19, 2024
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

{settingsTabTitle}
</EuiHeaderLink>
<Routes>
<Routes enableExecutionContextTracking={true}>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I am not sure what the difference is between routes on this file. Can someone please check one route from each category and verify if it works as expected?

Copy link
Copy Markdown
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

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

SLO changes LGTM. I noticed in your screenshot the page_url includes the kibana host prefix, while it was not included before. Is that expected?

@maryam-saeidi
Copy link
Copy Markdown
Member Author

maryam-saeidi commented Dec 30, 2024

SLO changes LGTM. I noticed in your screenshot the page_url includes the kibana host prefix, while it was not included before. Is that expected?

Good point, my changes shouldn't have an impact there; maybe @Dosant or @afharo have an idea about this.
From the looks of it, the new value including the complete URL seems correct to me, maybe we just need to remove the host prefix in this case and keep the rest of the changes.

@Dosant
Copy link
Copy Markdown
Contributor

Dosant commented Dec 30, 2024

SLO changes LGTM. I noticed in your screenshot the page_url includes the kibana host prefix, while it was not included before. Is that expected?

Good point, my changes shouldn't have an impact there; maybe @Dosant or @afharo have an idea about this. From the looks of it, the new value including the complete URL seems correct to me, maybe we just need to remove the host prefix in this case and keep the rest of the changes.

Have no idea from the top of my head, need to debug. What I find strange is that on the screenshots SLO and Synthetics have the basePath in page_url, but Infra > Inventory and Infra > Hosts don't. I'd expect these at least to be consistent. It might be that this inconsistency is coming from tracking on different routes-nesting levels, might be worth looking into it to find out what is the difference and if this can be consistent.

@maryam-saeidi maryam-saeidi requested a review from a team as a code owner January 2, 2025 12:15
@maryam-saeidi
Copy link
Copy Markdown
Member Author

@kdelemme @Dosant Thanks for your input. It seems unrelated to this PR and I created a separate ticket for it: #205382

@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Jan 2, 2025

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: ca45e9c
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-204939-ca45e9ce8b3b

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
infra 1.3MB 1.3MB +31.0B
slo 831.7KB 831.7KB +31.0B
synthetics 1.1MB 1.1MB +31.0B
total +93.0B

History

cc @maryam-saeidi

@maryam-saeidi maryam-saeidi merged commit 2e92018 into elastic:main Jan 3, 2025
@maryam-saeidi maryam-saeidi deleted the enable-default-execution-tracking branch January 3, 2025 08:45
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/12595107190

@kibanamachine
Copy link
Copy Markdown
Contributor

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jan 3, 2025
… plugins (#204939) (#205474)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Enable execution context tracking for SLO, infra and synthetics
plugins (#204939)](#204939)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT [{"author":{"name":"Maryam
Saeidi","email":"maryam.saeidi@elastic.co"},"sourceCommit":{"committedDate":"2025-01-03T08:45:21Z","message":"Enable
execution context tracking for SLO, infra and synthetics plugins
(#204939)\n\n## Summary\r\n\r\nThis PR enables default execution context
tracking (which was added in\r\nthis
[PR](#204547)) for
the\r\nfollowing plugins:\r\n\r\n- SLO\r\n- Infra\r\n-
Synthetics\r\n\r\n|Plugin|Before|After|\r\n|---|---|---|\r\n\r\n|SLO|![image](https://github.com/user-attachments/assets/3f3e4dac-a1e7-4fbd-be6b-ea885c89ad88)|![image](https://github.com/user-attachments/assets/ae76d68d-2970-4aaf-816a-05c161b1e4fe)|\r\n\r\n|Synthetics|![image](https://github.com/user-attachments/assets/9e6d5bda-1fd0-48e4-a5d8-5f2b0e35cf54)|![image](https://github.com/user-attachments/assets/a016cc78-121a-4381-8786-9ef96f20c028)|\r\n|Infra
>\r\nInventory|![image](https://github.com/user-attachments/assets/9186d9ba-5789-42dc-9f5c-e06d3e5c1598)|![image](https://github.com/user-attachments/assets/d4da56b8-581c-4be1-bd33-8a62b602392e)|\r\n|Infra
>\r\nHosts|![image](https://github.com/user-attachments/assets/18a982cb-fedf-4193-b402-8bf2ef8d7052)|![image](https://github.com/user-attachments/assets/4138f985-bf3e-477a-ba71-d6f0e3483ef8)|","sha":"2e9201855392894ff3de5c765c263ac69d1214d0","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-management"],"title":"Enable
execution context tracking for SLO, infra and synthetics
plugins","number":204939,"url":"https://github.com/elastic/kibana/pull/204939","mergeCommit":{"message":"Enable
execution context tracking for SLO, infra and synthetics plugins
(#204939)\n\n## Summary\r\n\r\nThis PR enables default execution context
tracking (which was added in\r\nthis
[PR](#204547)) for
the\r\nfollowing plugins:\r\n\r\n- SLO\r\n- Infra\r\n-
Synthetics\r\n\r\n|Plugin|Before|After|\r\n|---|---|---|\r\n\r\n|SLO|![image](https://github.com/user-attachments/assets/3f3e4dac-a1e7-4fbd-be6b-ea885c89ad88)|![image](https://github.com/user-attachments/assets/ae76d68d-2970-4aaf-816a-05c161b1e4fe)|\r\n\r\n|Synthetics|![image](https://github.com/user-attachments/assets/9e6d5bda-1fd0-48e4-a5d8-5f2b0e35cf54)|![image](https://github.com/user-attachments/assets/a016cc78-121a-4381-8786-9ef96f20c028)|\r\n|Infra
>\r\nInventory|![image](https://github.com/user-attachments/assets/9186d9ba-5789-42dc-9f5c-e06d3e5c1598)|![image](https://github.com/user-attachments/assets/d4da56b8-581c-4be1-bd33-8a62b602392e)|\r\n|Infra
>\r\nHosts|![image](https://github.com/user-attachments/assets/18a982cb-fedf-4193-b402-8bf2ef8d7052)|![image](https://github.com/user-attachments/assets/4138f985-bf3e-477a-ba71-d6f0e3483ef8)|","sha":"2e9201855392894ff3de5c765c263ac69d1214d0"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/204939","number":204939,"mergeCommit":{"message":"Enable
execution context tracking for SLO, infra and synthetics plugins
(#204939)\n\n## Summary\r\n\r\nThis PR enables default execution context
tracking (which was added in\r\nthis
[PR](#204547)) for
the\r\nfollowing plugins:\r\n\r\n- SLO\r\n- Infra\r\n-
Synthetics\r\n\r\n|Plugin|Before|After|\r\n|---|---|---|\r\n\r\n|SLO|![image](https://github.com/user-attachments/assets/3f3e4dac-a1e7-4fbd-be6b-ea885c89ad88)|![image](https://github.com/user-attachments/assets/ae76d68d-2970-4aaf-816a-05c161b1e4fe)|\r\n\r\n|Synthetics|![image](https://github.com/user-attachments/assets/9e6d5bda-1fd0-48e4-a5d8-5f2b0e35cf54)|![image](https://github.com/user-attachments/assets/a016cc78-121a-4381-8786-9ef96f20c028)|\r\n|Infra
>\r\nInventory|![image](https://github.com/user-attachments/assets/9186d9ba-5789-42dc-9f5c-e06d3e5c1598)|![image](https://github.com/user-attachments/assets/d4da56b8-581c-4be1-bd33-8a62b602392e)|\r\n|Infra
>\r\nHosts|![image](https://github.com/user-attachments/assets/18a982cb-fedf-4193-b402-8bf2ef8d7052)|![image](https://github.com/user-attachments/assets/4138f985-bf3e-477a-ba71-d6f0e3483ef8)|","sha":"2e9201855392894ff3de5c765c263ac69d1214d0"}}]}]
BACKPORT-->

Co-authored-by: Maryam Saeidi <maryam.saeidi@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:actionable-obs Formerly "obs-ux-management", responsible for SLO, o11y alerting, significant events, & synthetics. v8.18.0 v9.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants