Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [ObsUX] [APM-OTEL] Filter by trace.id instead of transaction.if…
… for dependency spans (elastic#198781) (elastic#198893) # Backport This will backport the following commits from `main` to `8.x`: - [[ObsUX] [APM-OTEL] Filter by trace.id instead of transaction.if for dependency spans (elastic#198781)](elastic#198781) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Miriam","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-05T08:20:31Z","message":"[ObsUX] [APM-OTEL] Filter by trace.id instead of transaction.if for dependency spans (elastic#198781)\n\nCloses https://github.com/elastic/kibana/issues/193672\r\n\r\n### Summary of the issue\r\n\r\nThe trace waterfall for dependencies operations is filled querying to\r\nspan documents using term query for `span.destination.service.resource`\r\nand `span.name` fields, and where `transaction.id` exist. The results\r\nfor this query were empty, in otel, span documents don't have the\r\n`transaction.id` field. After this query another one is made to retrieve\r\nthe transactions for those spans, querying the transaction ids\r\n\r\n### Fix\r\n\r\nThe query has been changed, so we will check for the `trace.id` instead\r\nof the `transaction.id`\r\nOn the second query, we will get from those trace ids the ones with\r\n`transaction.id` and retrieve the transactions data\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/fba25f61-0646-4071-b49f-422eab7ff18e","sha":"c83e6db44af0eb7e00090c542263dba1ba5c5d60","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-minor","ci:project-deploy-observability","Team:obs-ux-infra_services","v8.17.0"],"title":"[ObsUX] [APM-OTEL] Filter by trace.id instead of transaction.if for dependency spans","number":198781,"url":"https://github.com/elastic/kibana/pull/198781","mergeCommit":{"message":"[ObsUX] [APM-OTEL] Filter by trace.id instead of transaction.if for dependency spans (elastic#198781)\n\nCloses https://github.com/elastic/kibana/issues/193672\r\n\r\n### Summary of the issue\r\n\r\nThe trace waterfall for dependencies operations is filled querying to\r\nspan documents using term query for `span.destination.service.resource`\r\nand `span.name` fields, and where `transaction.id` exist. The results\r\nfor this query were empty, in otel, span documents don't have the\r\n`transaction.id` field. After this query another one is made to retrieve\r\nthe transactions for those spans, querying the transaction ids\r\n\r\n### Fix\r\n\r\nThe query has been changed, so we will check for the `trace.id` instead\r\nof the `transaction.id`\r\nOn the second query, we will get from those trace ids the ones with\r\n`transaction.id` and retrieve the transactions data\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/fba25f61-0646-4071-b49f-422eab7ff18e","sha":"c83e6db44af0eb7e00090c542263dba1ba5c5d60"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198781","number":198781,"mergeCommit":{"message":"[ObsUX] [APM-OTEL] Filter by trace.id instead of transaction.if for dependency spans (elastic#198781)\n\nCloses https://github.com/elastic/kibana/issues/193672\r\n\r\n### Summary of the issue\r\n\r\nThe trace waterfall for dependencies operations is filled querying to\r\nspan documents using term query for `span.destination.service.resource`\r\nand `span.name` fields, and where `transaction.id` exist. The results\r\nfor this query were empty, in otel, span documents don't have the\r\n`transaction.id` field. After this query another one is made to retrieve\r\nthe transactions for those spans, querying the transaction ids\r\n\r\n### Fix\r\n\r\nThe query has been changed, so we will check for the `trace.id` instead\r\nof the `transaction.id`\r\nOn the second query, we will get from those trace ids the ones with\r\n`transaction.id` and retrieve the transactions data\r\n\r\n\r\n\r\nhttps://github.com/user-attachments/assets/fba25f61-0646-4071-b49f-422eab7ff18e","sha":"c83e6db44af0eb7e00090c542263dba1ba5c5d60"}},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Miriam <[email protected]>
- Loading branch information