Include APM Trace Id in the X-Request-ID header in all Agentless API requests #192048
Closed
6 tasks
Labels
8.16 candidate
Team:Cloud Security
Cloud Security team related
technical debt
Improvement of the software architecture and operational architecture
Summary
This ticket aims to include the
X-Request-ID
Header on all HTTP calls from the Kibana server to the Agentless API.The
X-Request-ID
should be captured from thecurrentTraceparent
provided by the APM service.If a request is initiated as part of a background job, all Kibana transactions with the Agentless Api should happen after calling Apm's startTransaction.
Motivation
If a customer receives an error it can include the ID in a bug report, allowing the SDH operators to look up the corresponding log statements (without having to rely on timestamps, IPs, etc).
Also, this generated ID does not contain any sensitive information (client_id, cluster_id, etc), and won't violate the user's privacy as a unique ID is created per request it does help with tracking all the transactions related to a request when debugging an issue.
Definition of done
X-Request-ID
Header included on all HTTP calls from the Kibana server to the Agentless API.X-Request-ID
is the currentTraceparent string captured from Apm Service and is unique per request.X-Request-ID
is included on the error logs thrown on the try/catch blocks.X-Request-ID
.Related tasks/epics
The text was updated successfully, but these errors were encountered: