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

[8.16] [APM] Make trace.id an optional field (#201821) #201986

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

crespocarlos
Copy link
Contributor

Backport

This will backport the following commits from main to 8.16:

Questions ?

Please refer to the Backport tool documentation

\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Carlos Crespo "}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"url":"https://github.com//pull/201940","number":201940,"state":"MERGED","mergeCommit":{"sha":"4c3fcad3a7e94f2a340940acefe915414bbfabc4","message":"[8.x] [APM] Make `trace.id` an optional field (#201821) (#201940)\n\n# Backport\n\nThis will backport the following commits from `main` to `8.x`:\n- [[APM] Make `trace.id` an optional field\n(#201821)](https://github.com//pull/201821)\n\n\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\n\nCo-authored-by: Carlos Crespo "}}]}] BACKPORT-->

fixes [elastic#201803](elastic#201803)

## Summary

This PR fixes the error sample details function, making the `trace.id`
an optional field, to prevent the function from crashing in case this
field is not in the docs.

---------

Co-authored-by: Elastic Machine <[email protected]>
(cherry picked from commit caea206)

# Conflicts:
#	x-pack/test/api_integration/deployment_agnostic/apis/observability/apm/errors/group_id_samples.spec.ts
#	x-pack/test/apm_api_integration/tests/errors/generate_data.ts
@crespocarlos crespocarlos enabled auto-merge (squash) November 27, 2024 13:43
@botelastic botelastic bot added ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team labels Nov 27, 2024
@elasticmachine
Copy link
Contributor

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

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

@cauemarcondes cauemarcondes left a comment

Choose a reason for hiding this comment

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

LGTM

@crespocarlos crespocarlos merged commit b89fa16 into elastic:8.16 Nov 27, 2024
15 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

@crespocarlos crespocarlos deleted the backport/8.16/pr-201821 branch November 27, 2024 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport ci:project-deploy-observability Create an Observability project Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants