Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APM][Otel]Fix get_error_group_main_statistics making trace.id optional field #196822

Merged
merged 3 commits into from
Oct 18, 2024

Conversation

crespocarlos
Copy link
Contributor

@crespocarlos crespocarlos commented Oct 18, 2024

fixes 196821

Summary

trace.id should've been sent as an optional field to the get_error_group_main_statistics query. This PR fixes that

image

How to test

@crespocarlos crespocarlos added release_note:skip Skip the PR/issue when compiling release notes backport:prev-major Backport to (8.x, 8.16, 8.15) the previous major branch and all later branches still in development Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Oct 18, 2024
@crespocarlos crespocarlos requested a review from a team as a code owner October 18, 2024 09:18
@elasticmachine
Copy link
Contributor

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

@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Oct 18, 2024
Copy link
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!)

Copy link
Contributor

@rmyz rmyz left a comment

Choose a reason for hiding this comment

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

LGTM

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 💯 Thank you for the fix 🚀

@crespocarlos crespocarlos enabled auto-merge (squash) October 18, 2024 10:00
@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@crespocarlos
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 18, 2024

💛 Build succeeded, but was flaky

  • Buildkite Build
  • Commit: e0eda73
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-196822-e0eda739aa50

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #91 / serverless search UI Search index detail page index details page overview With data menu action item should be replaced with playground

Metrics [docs]

✅ unchanged

History

@crespocarlos crespocarlos merged commit a36fa11 into elastic:main Oct 18, 2024
26 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.15, 8.16, 8.x

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

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 18, 2024
…al field (elastic#196822)

fixes [196821](elastic#196821)

## Summary

`trace.id` should've been sent as an optional field to the
`get_error_group_main_statistics` query. This PR fixes that

<img width="700" alt="image"
src="https://github.com/user-attachments/assets/20b63361-9645-418f-a611-2c0e29b385c7">

## How to test

- Run the opentelemetry demo:
https://github.com/elastic/opentelemetry-demo/tree/rca_ingress_obs
- Navigate to Application > Services
- Open the service details for loadgenerator

(cherry picked from commit a36fa11)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Oct 18, 2024
…al field (elastic#196822)

fixes [196821](elastic#196821)

## Summary

`trace.id` should've been sent as an optional field to the
`get_error_group_main_statistics` query. This PR fixes that

<img width="700" alt="image"
src="https://github.com/user-attachments/assets/20b63361-9645-418f-a611-2c0e29b385c7">

## How to test

- Run the opentelemetry demo:
https://github.com/elastic/opentelemetry-demo/tree/rca_ingress_obs
- Navigate to Application > Services
- Open the service details for loadgenerator

(cherry picked from commit a36fa11)
@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.15 Backport failed because of merge conflicts
8.16
8.x

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

Manual backport

To create the backport manually run:

node scripts/backport --pr 196822

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Oct 19, 2024
… optional field (#196822) (#196966)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[APM][Otel]Fix get_error_group_main_statistics making trace.id
optional field (#196822)](#196822)

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

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

<!--BACKPORT [{"author":{"name":"Carlos
Crespo","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-10-18T23:16:36Z","message":"[APM][Otel]Fix
get_error_group_main_statistics making trace.id optional field
(#196822)\n\nfixes
[196821](https://github.com/elastic/kibana/issues/196821)\r\n\r\n##
Summary\r\n\r\n`trace.id` should've been sent as an optional field to
the\r\n`get_error_group_main_statistics` query. This PR fixes
that\r\n\r\n<img width=\"700\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/20b63361-9645-418f-a611-2c0e29b385c7\">\r\n\r\n\r\n##
How to test \r\n\r\n- Run the opentelemetry
demo:\r\nhttps://github.com/elastic/opentelemetry-demo/tree/rca_ingress_obs\r\n-
Navigate to Application > Services\r\n- Open the service details for
loadgenerator","sha":"a36fa1151b4af7ecd1565bf2b67fad20835b8209","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major","ci:project-deploy-observability","Team:obs-ux-infra_services"],"title":"[APM][Otel]Fix
get_error_group_main_statistics making trace.id optional
field","number":196822,"url":"https://github.com/elastic/kibana/pull/196822","mergeCommit":{"message":"[APM][Otel]Fix
get_error_group_main_statistics making trace.id optional field
(#196822)\n\nfixes
[196821](https://github.com/elastic/kibana/issues/196821)\r\n\r\n##
Summary\r\n\r\n`trace.id` should've been sent as an optional field to
the\r\n`get_error_group_main_statistics` query. This PR fixes
that\r\n\r\n<img width=\"700\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/20b63361-9645-418f-a611-2c0e29b385c7\">\r\n\r\n\r\n##
How to test \r\n\r\n- Run the opentelemetry
demo:\r\nhttps://github.com/elastic/opentelemetry-demo/tree/rca_ingress_obs\r\n-
Navigate to Application > Services\r\n- Open the service details for
loadgenerator","sha":"a36fa1151b4af7ecd1565bf2b67fad20835b8209"}},"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/196822","number":196822,"mergeCommit":{"message":"[APM][Otel]Fix
get_error_group_main_statistics making trace.id optional field
(#196822)\n\nfixes
[196821](https://github.com/elastic/kibana/issues/196821)\r\n\r\n##
Summary\r\n\r\n`trace.id` should've been sent as an optional field to
the\r\n`get_error_group_main_statistics` query. This PR fixes
that\r\n\r\n<img width=\"700\"
alt=\"image\"\r\nsrc=\"https://github.com/user-attachments/assets/20b63361-9645-418f-a611-2c0e29b385c7\">\r\n\r\n\r\n##
How to test \r\n\r\n- Run the opentelemetry
demo:\r\nhttps://github.com/elastic/opentelemetry-demo/tree/rca_ingress_obs\r\n-
Navigate to Application > Services\r\n- Open the service details for
loadgenerator","sha":"a36fa1151b4af7ecd1565bf2b67fad20835b8209"}}]}]
BACKPORT-->

Co-authored-by: Carlos Crespo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-major Backport to (8.x, 8.16, 8.15) the previous major branch and all later branches still in development ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v8.16.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM][Otel] apm/services/{serviceId}/errors/groups/main_statistics throws 500 when trace.id is missing
5 participants