Skip to content

[APM] Fix service maps when root transaction has a parent.id#212998

Merged
crespocarlos merged 4 commits intoelastic:mainfrom
crespocarlos:212931-service-map-without-parentless-transaction-fix
Mar 10, 2025
Merged

[APM] Fix service maps when root transaction has a parent.id#212998
crespocarlos merged 4 commits intoelastic:mainfrom
crespocarlos:212931-service-map-without-parentless-transaction-fix

Conversation

@crespocarlos
Copy link
Contributor

@crespocarlos crespocarlos commented Mar 3, 2025

fixes 212931

Summary

Warning

This can only be merged after https://github.com/elastic/elasticsearch-serverless/pull/3579. Service map tests running against serverless will fail until the aforementioned PR gets merged and deployed. It should happen Thursday/Friday next week (13/14 Feb)

Fixes a bug on the service map causing it not to build the paths when the root transaction of the trace had a parent.id

Global service map

Before After
image image

Ad service map

Before After
image image

How to test

  • Connect to an edge-obl cluster
  • Navigate the Application > Services inventory > Service Map
  • Inspect the service map of the Ad service

}


continue;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was the issue.

Comment on lines +192 to +200
while (parentId != null && !parentId.equals(eventId)) {
def parent = context.eventsById.get(parentId);
if (parent == null || visited.contains(parentId)) {
break;
}

pathStack.push(parentId);
visited.add(parentId);
parentId = parent['parent.id'];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This now builds a stack from the current event until its root transaction, ignoring whether the root transaction has or not a parent.id

}

// pop the stack starting from the root to current event to build the path
while (!pathStack.isEmpty()) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

With the path from current event to root transaction defined, it iterates over the stack from the root transaction up until the current event.

while (!stack.isEmpty()) {
def currentEventId = stack.pop();
def event = context.eventsById.get(currentEventId);
def basePath = new ArrayList();
Copy link
Contributor Author

@crespocarlos crespocarlos Mar 4, 2025

Choose a reason for hiding this comment

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

basePath is cumulative. Each iteration appends a service and a destination, if found, to it

@crespocarlos crespocarlos marked this pull request as ready for review March 4, 2025 12:09
@crespocarlos crespocarlos requested a review from a team March 4, 2025 12:09
@crespocarlos crespocarlos requested a review from a team as a code owner March 4, 2025 12:09
@elasticmachine
Copy link
Contributor

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

@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@jennypavlova jennypavlova self-requested a review March 4, 2025 12:40
Copy link
Member

@jennypavlova jennypavlova left a comment

Choose a reason for hiding this comment

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

LGTM 💯 I can see the service map of the ad service 🎉 Thank you for fixing that!

Copy link
Contributor

@MiriamAparicio MiriamAparicio left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for all the detailed explanation of the issue

Copy link
Contributor

@achyutjhunjhunwala achyutjhunjhunwala left a comment

Choose a reason for hiding this comment

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

Synthtrace changes looks good

@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@crespocarlos
Copy link
Contributor Author

/ci

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #45 / dashboard app - esql controls dashboard - add a value type ES|QL control should update the Lens chart accordingly

Metrics [docs]

✅ unchanged

History

@crespocarlos crespocarlos merged commit 4a67b8b into elastic:main Mar 10, 2025
9 checks passed
@crespocarlos crespocarlos deleted the 212931-service-map-without-parentless-transaction-fix branch March 10, 2025 14:57
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.16, 8.17, 8.18, 8.x, 9.0

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2025
…#212998)

fixes [212931](elastic#212931)

## Summary

>[!WARNING]
> This can only be merged after
elastic/elasticsearch-serverless#3579. Service
map tests running against serverless will fail until the aforementioned
PR gets merged and deployed. It should happen Thursday/Friday next week
(13/14 Feb)

Fixes a bug on the service map causing it not to build the paths when
the root transaction of the trace had a `parent.id`

Global service map
| Before | After |
|--------|------|
|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da"
/>|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860"
/>|

`Ad` service map

| Before | After |
|--------|------|
|<img width="1469" alt="image"
src="https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15"
/>|<img width="1459" alt="image"
src="https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332"
/>|

### How to test
- Connect to an `edge-obl` cluster
- Navigate the Application > Services inventory > Service Map
- Inspect the service map of the `Ad` service

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4a67b8b)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2025
…#212998)

fixes [212931](elastic#212931)

## Summary

>[!WARNING]
> This can only be merged after
elastic/elasticsearch-serverless#3579. Service
map tests running against serverless will fail until the aforementioned
PR gets merged and deployed. It should happen Thursday/Friday next week
(13/14 Feb)

Fixes a bug on the service map causing it not to build the paths when
the root transaction of the trace had a `parent.id`

Global service map
| Before | After |
|--------|------|
|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da"
/>|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860"
/>|

`Ad` service map

| Before | After |
|--------|------|
|<img width="1469" alt="image"
src="https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15"
/>|<img width="1459" alt="image"
src="https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332"
/>|

### How to test
- Connect to an `edge-obl` cluster
- Navigate the Application > Services inventory > Service Map
- Inspect the service map of the `Ad` service

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4a67b8b)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2025
…#212998)

fixes [212931](elastic#212931)

## Summary

>[!WARNING]
> This can only be merged after
elastic/elasticsearch-serverless#3579. Service
map tests running against serverless will fail until the aforementioned
PR gets merged and deployed. It should happen Thursday/Friday next week
(13/14 Feb)

Fixes a bug on the service map causing it not to build the paths when
the root transaction of the trace had a `parent.id`

Global service map
| Before | After |
|--------|------|
|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da"
/>|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860"
/>|

`Ad` service map

| Before | After |
|--------|------|
|<img width="1469" alt="image"
src="https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15"
/>|<img width="1459" alt="image"
src="https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332"
/>|

### How to test
- Connect to an `edge-obl` cluster
- Navigate the Application > Services inventory > Service Map
- Inspect the service map of the `Ad` service

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4a67b8b)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Mar 10, 2025
…#212998)

fixes [212931](elastic#212931)

## Summary

>[!WARNING]
> This can only be merged after
elastic/elasticsearch-serverless#3579. Service
map tests running against serverless will fail until the aforementioned
PR gets merged and deployed. It should happen Thursday/Friday next week
(13/14 Feb)

Fixes a bug on the service map causing it not to build the paths when
the root transaction of the trace had a `parent.id`

Global service map
| Before | After |
|--------|------|
|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da"
/>|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860"
/>|

`Ad` service map

| Before | After |
|--------|------|
|<img width="1469" alt="image"
src="https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15"
/>|<img width="1459" alt="image"
src="https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332"
/>|

### How to test
- Connect to an `edge-obl` cluster
- Navigate the Application > Services inventory > Service Map
- Inspect the service map of the `Ad` service

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4a67b8b)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.16 Backport failed because of merge conflicts

You might need to backport the following PRs to 8.16:
- [ci] Trigger VM image rebuild for cache rebuild only (#213497)
8.17
8.18
8.x
9.0

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 212998

Questions ?

Please refer to the Backport tool documentation

crespocarlos added a commit to crespocarlos/kibana that referenced this pull request Mar 10, 2025
…#212998)

fixes [212931](elastic#212931)

## Summary

>[!WARNING]
> This can only be merged after
elastic/elasticsearch-serverless#3579. Service
map tests running against serverless will fail until the aforementioned
PR gets merged and deployed. It should happen Thursday/Friday next week
(13/14 Feb)

Fixes a bug on the service map causing it not to build the paths when
the root transaction of the trace had a `parent.id`

Global service map
| Before | After |
|--------|------|
|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da"
/>|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860"
/>|

`Ad` service map

| Before | After |
|--------|------|
|<img width="1469" alt="image"
src="https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15"
/>|<img width="1459" alt="image"
src="https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332"
/>|

### How to test
- Connect to an `edge-obl` cluster
- Navigate the Application > Services inventory > Service Map
- Inspect the service map of the `Ad` service

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 4a67b8b)

# Conflicts:
#	x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/service_maps/service_maps.spec.ts
@crespocarlos
Copy link
Contributor Author

💚 All backports created successfully

Status Branch Result
8.16

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 Mar 10, 2025
…212998) (#213765)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[APM] Fix service maps when root transaction has a parent.id
(#212998)](#212998)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"crespocarlos@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T14:57:54Z","message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Fix service maps when root transaction has a
parent.id","number":212998,"url":"https://github.com/elastic/kibana/pull/212998","mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212998","number":212998,"mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Mar 10, 2025
…212998) (#213766)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[APM] Fix service maps when root transaction has a parent.id
(#212998)](#212998)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"crespocarlos@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T14:57:54Z","message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Fix service maps when root transaction has a
parent.id","number":212998,"url":"https://github.com/elastic/kibana/pull/212998","mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212998","number":212998,"mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
kibanamachine added a commit that referenced this pull request Mar 10, 2025
…212998) (#213764)

# Backport

This will backport the following commits from `main` to `8.18`:
- [[APM] Fix service maps when root transaction has a parent.id
(#212998)](#212998)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"crespocarlos@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T14:57:54Z","message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Fix service maps when root transaction has a
parent.id","number":212998,"url":"https://github.com/elastic/kibana/pull/212998","mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212998","number":212998,"mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
crespocarlos added a commit that referenced this pull request Mar 10, 2025
…212998) (#213768)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[APM] Fix service maps when root transaction has a parent.id
(#212998)](#212998)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"crespocarlos@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T14:57:54Z","message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Fix service maps when root transaction has a
parent.id","number":212998,"url":"https://github.com/elastic/kibana/pull/212998","mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212998","number":212998,"mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}},{"url":"https://github.com/elastic/kibana/pull/213763","number":213763,"branch":"8.17","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/213764","number":213764,"branch":"8.18","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/213765","number":213765,"branch":"8.x","state":"OPEN"},{"url":"https://github.com/elastic/kibana/pull/213766","number":213766,"branch":"9.0","state":"OPEN"}]}]
BACKPORT-->
@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 11, 2025
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

1 similar comment
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

kibanamachine added a commit that referenced this pull request Mar 13, 2025
…212998) (#213763)

# Backport

This will backport the following commits from `main` to `8.17`:
- [[APM] Fix service maps when root transaction has a parent.id
(#212998)](#212998)

<!--- Backport version: 9.6.6 -->

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"crespocarlos@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-10T14:57:54Z","message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","backport:prev-minor","backport:prev-major","Team:obs-ux-infra_services","v9.1.0"],"title":"[APM]
Fix service maps when root transaction has a
parent.id","number":212998,"url":"https://github.com/elastic/kibana/pull/212998","mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212998","number":212998,"mergeCommit":{"message":"[APM]
Fix service maps when root transaction has a parent.id
(#212998)\n\nfixes
[212931](https://github.com/elastic/kibana/issues/212931)\n\n##
Summary\n\n>[!WARNING]\n> This can only be merged
after\nhttps://github.com/elastic/elasticsearch-serverless/pull/3579.
Service\nmap tests running against serverless will fail until the
aforementioned\nPR gets merged and deployed. It should happen
Thursday/Friday next week\n(13/14 Feb)\n\nFixes a bug on the service map
causing it not to build the paths when\nthe root transaction of the
trace had a `parent.id`\n\nGlobal service map\n| Before | After
|\n|--------|------|\n|<img width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da\"\n/>|<img
width=\"599\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860\"\n/>|\n\n\n`Ad`
service map\n\n| Before | After |\n|--------|------|\n|<img
width=\"1469\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15\"\n/>|<img
width=\"1459\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332\"\n/>|\n\n\n###
How to test\n- Connect to an `edge-obl` cluster\n- Navigate the
Application > Services inventory > Service Map\n- Inspect the service
map of the `Ad` service\n\n---------\n\nCo-authored-by: Elastic Machine
<elasticmachine@users.noreply.github.com>","sha":"4a67b8b3af26ea8d7f5c97e6933437122873599f"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <crespocarlos@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@kibanamachine kibanamachine added v8.17.4 and removed backport missing Added to PRs automatically when the are determined to be missing a backport. labels Mar 13, 2025
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Mar 22, 2025
…#212998)

fixes [212931](elastic#212931)

## Summary

>[!WARNING]
> This can only be merged after
elastic/elasticsearch-serverless#3579. Service
map tests running against serverless will fail until the aforementioned
PR gets merged and deployed. It should happen Thursday/Friday next week
(13/14 Feb)

Fixes a bug on the service map causing it not to build the paths when
the root transaction of the trace had a `parent.id`

Global service map
| Before | After |
|--------|------|
|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/cce72dea-822b-46e2-938c-65ec3f4600da"
/>|<img width="599" alt="image"
src="https://github.com/user-attachments/assets/68b344fb-2e75-46b8-9401-9fce08bfb860"
/>|


`Ad` service map

| Before | After |
|--------|------|
|<img width="1469" alt="image"
src="https://github.com/user-attachments/assets/e960a390-4a38-43d5-9445-853ced34bb15"
/>|<img width="1459" alt="image"
src="https://github.com/user-attachments/assets/566e3cf0-3805-4bf2-a511-fffed3480332"
/>|


### How to test
- Connect to an `edge-obl` cluster
- Navigate the Application > Services inventory > Service Map
- Inspect the service map of the `Ad` service

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[APM] Serice Map breaks when it can't find a root transaction

6 participants