Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] [Cloud Security] [Agentless] Improving error log metadata and s…
…ending APM trace id (#192235) (#193901) # Backport This will backport the following commits from `main` to `8.x`: - [[Cloud Security] [Agentless] Improving error log metadata and sending APM trace id (#192235)](#192235) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Paulo Silva","email":"paulo.henrique@elastic.co"},"sourceCommit":{"committedDate":"2024-09-24T16:56:03Z","message":"[Cloud Security] [Agentless] Improving error log metadata and sending APM trace id (#192235)\n\n## Summary\r\n\r\nThis PR includes a few improvements in the communication between Kibana\r\nand the Agentless API.\r\n\r\n- Adding a `X-Request-ID` Header on all HTTP calls from the Kibana\r\nserver to the Agentless API. X-Request-ID is the\r\n[currentTraceparent](https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-current-traceparent)\r\nstring captured from Apm Service and is unique per request.\r\n- Also, this PR enhances some error logs metadata with the relevant\r\nfields, and all documents logged to ES also includes the\r\n[trace.id](https://www.elastic.co/guide/en/ecs/8.11/ecs-tracing.html)\r\nfield\r\n- Also this PR redacts the fleet token sent to the debug logs to prevent\r\ncredential leaking","sha":"10bcc626ecb1d8bf77f5a4d95d4d85f5e094d782","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Fleet","v9.0.0","Team:Cloud Security","v8.16.0","backport:version"],"title":"[Cloud Security] [Agentless] Improving error log metadata and sending APM trace id","number":192235,"url":"https://github.com/elastic/kibana/pull/192235","mergeCommit":{"message":"[Cloud Security] [Agentless] Improving error log metadata and sending APM trace id (#192235)\n\n## Summary\r\n\r\nThis PR includes a few improvements in the communication between Kibana\r\nand the Agentless API.\r\n\r\n- Adding a `X-Request-ID` Header on all HTTP calls from the Kibana\r\nserver to the Agentless API. X-Request-ID is the\r\n[currentTraceparent](https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-current-traceparent)\r\nstring captured from Apm Service and is unique per request.\r\n- Also, this PR enhances some error logs metadata with the relevant\r\nfields, and all documents logged to ES also includes the\r\n[trace.id](https://www.elastic.co/guide/en/ecs/8.11/ecs-tracing.html)\r\nfield\r\n- Also this PR redacts the fleet token sent to the debug logs to prevent\r\ncredential leaking","sha":"10bcc626ecb1d8bf77f5a4d95d4d85f5e094d782"}},"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/192235","number":192235,"mergeCommit":{"message":"[Cloud Security] [Agentless] Improving error log metadata and sending APM trace id (#192235)\n\n## Summary\r\n\r\nThis PR includes a few improvements in the communication between Kibana\r\nand the Agentless API.\r\n\r\n- Adding a `X-Request-ID` Header on all HTTP calls from the Kibana\r\nserver to the Agentless API. X-Request-ID is the\r\n[currentTraceparent](https://www.elastic.co/guide/en/apm/agent/nodejs/current/agent-api.html#apm-current-traceparent)\r\nstring captured from Apm Service and is unique per request.\r\n- Also, this PR enhances some error logs metadata with the relevant\r\nfields, and all documents logged to ES also includes the\r\n[trace.id](https://www.elastic.co/guide/en/ecs/8.11/ecs-tracing.html)\r\nfield\r\n- Also this PR redacts the fleet token sent to the debug logs to prevent\r\ncredential leaking","sha":"10bcc626ecb1d8bf77f5a4d95d4d85f5e094d782"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Paulo Silva <paulo.henrique@elastic.co>
- Loading branch information