-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
🚧 WIP 🚧 Replace _source in the APM queries #192608
🚧 WIP 🚧 Replace _source in the APM queries #192608
Conversation
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
08019f8
to
8d921bb
Compare
…source-with-fields
/ci |
/ci |
/ci |
/ci |
03e02dc
to
00d88b5
Compare
...plugins/observability_solution/apm/server/routes/dependencies/get_metadata_for_dependency.ts
Outdated
Show resolved
Hide resolved
...ck/plugins/observability_solution/apm/server/routes/dependencies/get_top_dependency_spans.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/apm/server/utils/normalize_fields.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/observability_solution/apm/server/routes/traces/get_trace_items.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/apm/server/routes/traces/get_trace_items.ts
Show resolved
Hide resolved
x-pack/plugins/observability_solution/apm/common/correlations/types.ts
Outdated
Show resolved
Hide resolved
…source-with-fields
/ci |
/ci |
x-pack/plugins/observability_solution/apm/server/utils/es_fields_mappings/transaction.ts
Outdated
Show resolved
Hide resolved
…-fields' of https://github.com/jennypavlova/kibana into 192606-poc-otel-data-with-apm-ui-replacing-_source-with-fields
/ci |
...observability_solution/apm/server/routes/services/get_service_instance_container_metadata.ts
Show resolved
Hide resolved
/ci |
/ci |
💔 Build FailedFailed CI Steps
Test Failures
Metrics [docs]Public APIs missing comments
Async chunks
History
To update your PR or re-run it, just comment with: |
const fieldsNorm = (fields ? serviceMetadataDetailsMapping(fields) : undefined) as | ||
| ServiceMetadataDetailsRaw | ||
| undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have a check for undefined
in serviceMetadataDetailsMapping
therefore we can pass undefined
safely. No need to double-check. Wdyt? I can update it my PR if you agree
const fieldsNorm = (fields ? serviceMetadataDetailsMapping(fields) : undefined) as | |
| ServiceMetadataDetailsRaw | |
| undefined; | |
const fieldsNorm = serviceMetadataDetailsMapping(fields); |
Close in favor of the refactored version: #195242 |
closes #192606 ## Summary v2 based on the work done in this PR #192608 and the suggestion from Dario #194424 This PR replaces the _source usage in APM queries with fields to support Otel data. The idea is to get rid of existing UI errors we have and make sure that otel data is shown correctly in the UI. One way to check it is using the [e2e PoC](https://github.com/elastic/otel-apm-e2e-poc/blob/main/README.md). --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Jenny <[email protected]>
…#195242) closes elastic#192606 ## Summary v2 based on the work done in this PR elastic#192608 and the suggestion from Dario elastic#194424 This PR replaces the _source usage in APM queries with fields to support Otel data. The idea is to get rid of existing UI errors we have and make sure that otel data is shown correctly in the UI. One way to check it is using the [e2e PoC](https://github.com/elastic/otel-apm-e2e-poc/blob/main/README.md). --------- Co-authored-by: kibanamachine <[email protected]> Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Jenny <[email protected]> (cherry picked from commit 7235ed0)
…0; on APM queries (#195242) (#196265) # Backport This will backport the following commits from `main` to `8.x`: - [[APM][Otel] Use `fields` instead of `_source` on APM queries (#195242)](#195242) <!--- 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-15T09:38:44Z","message":"[APM][Otel] Use `fields` instead of `_source` on APM queries (#195242)\n\ncloses https://github.com/elastic/kibana/issues/192606\r\n\r\n## Summary\r\n\r\nv2 based on the work done in this PR\r\nhttps://github.com//pull/192608 and the suggestion from\r\nDario https://github.com/elastic/kibana/pull/194424\r\n\r\nThis PR replaces the _source usage in APM queries with fields to support\r\nOtel data. The idea is to get rid of existing UI errors we have and make\r\nsure that otel data is shown correctly in the UI.\r\n\r\nOne way to check it is using the [e2e\r\nPoC](https://github.com/elastic/otel-apm-e2e-poc/blob/main/README.md).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Jenny <[email protected]>","sha":"7235ed0425100bbf04ff157d0af7980875473c99","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","v9.0.0","apm","apm:opentelemetry","backport:prev-minor","ci:project-deploy-observability","Team:obs-ux-infra_services"],"title":"[APM][Otel] Use `fields` instead of `_source` on APM queries","number":195242,"url":"https://github.com/elastic/kibana/pull/195242","mergeCommit":{"message":"[APM][Otel] Use `fields` instead of `_source` on APM queries (#195242)\n\ncloses https://github.com/elastic/kibana/issues/192606\r\n\r\n## Summary\r\n\r\nv2 based on the work done in this PR\r\nhttps://github.com//pull/192608 and the suggestion from\r\nDario https://github.com/elastic/kibana/pull/194424\r\n\r\nThis PR replaces the _source usage in APM queries with fields to support\r\nOtel data. The idea is to get rid of existing UI errors we have and make\r\nsure that otel data is shown correctly in the UI.\r\n\r\nOne way to check it is using the [e2e\r\nPoC](https://github.com/elastic/otel-apm-e2e-poc/blob/main/README.md).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Jenny <[email protected]>","sha":"7235ed0425100bbf04ff157d0af7980875473c99"}},"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/195242","number":195242,"mergeCommit":{"message":"[APM][Otel] Use `fields` instead of `_source` on APM queries (#195242)\n\ncloses https://github.com/elastic/kibana/issues/192606\r\n\r\n## Summary\r\n\r\nv2 based on the work done in this PR\r\nhttps://github.com//pull/192608 and the suggestion from\r\nDario https://github.com/elastic/kibana/pull/194424\r\n\r\nThis PR replaces the _source usage in APM queries with fields to support\r\nOtel data. The idea is to get rid of existing UI errors we have and make\r\nsure that otel data is shown correctly in the UI.\r\n\r\nOne way to check it is using the [e2e\r\nPoC](https://github.com/elastic/otel-apm-e2e-poc/blob/main/README.md).\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>\r\nCo-authored-by: Elastic Machine <[email protected]>\r\nCo-authored-by: Jenny <[email protected]>","sha":"7235ed0425100bbf04ff157d0af7980875473c99"}}]}] BACKPORT--> Co-authored-by: Carlos Crespo <[email protected]>
🚧
This PR replaces the
_source
usage in APM queries withfields
to support Otel data. The idea is to get rid of existing UI errors we have and make sure that otel data is shown correctly in the UI. One way to check it is using the e2e PoC.The PR doesn't cover Errors because of some known blockers
The PR will be extended by explicit typing instead of the current draft type casting
The PR changes should work with Otel or APM data but the span links for Otel will be addressed in a separate issue (they should work for APM)
Testing with Otel-only indices (can help find potential issues that are not visible when the apm indices are used)
Screen.Recording.2024-09-30.at.13.22.42.mov
otel_poc_test_sedotlp_hd.mov
otel_poc_demo_service.mov