Skip to content

Fix Traces persists invalid filters#259432

Merged
sbelastic merged 1 commit intoelastic:mainfrom
sbelastic:257427-fix-explore-traces-invalid-filters
Mar 25, 2026
Merged

Fix Traces persists invalid filters#259432
sbelastic merged 1 commit intoelastic:mainfrom
sbelastic:257427-fix-explore-traces-invalid-filters

Conversation

@sbelastic
Copy link
Copy Markdown
Contributor

@sbelastic sbelastic commented Mar 24, 2026

Closes #257427

Summary

  • Like it written in the issue, the kuery is not longer passed to the discover page from the service map when exploring traces because it's not used in the red metrics, now the data stays consistent when going between pages
  • Add unit tests for this

Before and After

Before

Before.mp4

After

After.mp4

How to run Unit Tests

yarn test:jest x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.test.tsx

Checklist

@sbelastic sbelastic self-assigned this Mar 24, 2026
@sbelastic sbelastic added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation labels Mar 24, 2026
@sbelastic sbelastic marked this pull request as ready for review March 24, 2026 17:34
@sbelastic sbelastic requested a review from a team as a code owner March 24, 2026 17:34
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-presentation-team (Team:obs-presentation)

@sbelastic sbelastic changed the title Remove KQL from service map explore traces button Fix Traces persists invalid filters Mar 24, 2026
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Mar 24, 2026

💔 Build Failed

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
apm 2.7MB 2.7MB -16.0B

History

cc @sbelastic

Copy link
Copy Markdown
Contributor

@AlejandroFrndz AlejandroFrndz left a comment

Choose a reason for hiding this comment

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

Good eye realising the kql params in the service map filter the map but not the traces in edges. LGTM!

@sbelastic sbelastic added backport:version Backport to applied version labels v9.3.3 v9.2.8 and removed backport:skip This PR does not require backporting labels Mar 25, 2026
@sbelastic sbelastic merged commit 68aab74 into elastic:main Mar 25, 2026
36 checks passed
@kibanamachine
Copy link
Copy Markdown
Contributor

Starting backport for target branches: 9.2, 9.3

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

@kibanamachine
Copy link
Copy Markdown
Contributor

💔 All backports failed

Status Branch Result
9.2 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.2:
- Fix Moon webpack dependency cache invalidation (#258940)
9.3 Backport failed because of merge conflicts

You might need to backport the following PRs to 9.3:
- [Agent Builder] Fix: stable dependency on tools page (#259467)
- Fix Moon webpack dependency cache invalidation (#258940)
- [Obs AI] Supports for Logs AI Insight in ES|QL mode in Discover (#258595)

Manual backport

To create the backport manually run:

node scripts/backport --pr 259432

Questions ?

Please refer to the Backport tool documentation

@sbelastic sbelastic added backport:skip This PR does not require backporting and removed backport:version Backport to applied version labels v9.3.3 v9.2.8 labels Mar 25, 2026
jeramysoucy pushed a commit to jeramysoucy/kibana that referenced this pull request Mar 26, 2026
Closes elastic#257427

## Summary

- Like it written in the issue, the kuery is not longer passed to the
discover page from the service map when exploring traces because it's
not used in the red metrics, now the data stays consistent when going
between pages
- Add unit tests for this


### Before and After

#### Before


https://github.com/user-attachments/assets/345ac5a9-fa32-4410-afff-003db8593ed1

#### After


https://github.com/user-attachments/assets/c97944f5-f5b1-4cfa-b577-46ebbcc0fdaa


### How to run Unit Tests

`yarn test:jest
x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.test.tsx`


### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
sbelastic added a commit to sbelastic/kibana that referenced this pull request Mar 27, 2026
Closes elastic#257427

- Like it written in the issue, the kuery is not longer passed to the
discover page from the service map when exploring traces because it's
not used in the red metrics, now the data stays consistent when going
between pages
- Add unit tests for this

https://github.com/user-attachments/assets/345ac5a9-fa32-4410-afff-003db8593ed1

https://github.com/user-attachments/assets/c97944f5-f5b1-4cfa-b577-46ebbcc0fdaa

`yarn test:jest
x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.test.tsx`
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios

(cherry picked from commit 68aab74)
jeramysoucy pushed a commit to jeramysoucy/kibana that referenced this pull request Apr 1, 2026
Closes elastic#257427

## Summary

- Like it written in the issue, the kuery is not longer passed to the
discover page from the service map when exploring traces because it's
not used in the red metrics, now the data stays consistent when going
between pages
- Add unit tests for this


### Before and After

#### Before


https://github.com/user-attachments/assets/345ac5a9-fa32-4410-afff-003db8593ed1

#### After


https://github.com/user-attachments/assets/c97944f5-f5b1-4cfa-b577-46ebbcc0fdaa


### How to run Unit Tests

`yarn test:jest
x-pack/solutions/observability/plugins/apm/public/components/app/service_map/popover/edge_contents.test.tsx`


### Checklist
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Explore Traces persists invalid filters

4 participants