To debug sudden spiking delay while collecting and processing metrics, it was required to collect more metrics during the HTTP requests.
Also, we noticed that the agent token is exposed to the log when HTTP debug is enabled, which can be a security risk.
This PR
It adds more traces to the HTTP Client tracer for more detailed event timing. Also, it updates the request dump to redact the Authorisation header if it exists.
Background
To debug sudden spiking delay while collecting and processing metrics, it was required to collect more metrics during the HTTP requests.
Also, we noticed that the agent token is exposed to the log when HTTP debug is enabled, which can be a security risk.
This PR
It adds more traces to the HTTP Client tracer for more detailed event timing. Also, it updates the request dump to redact the Authorisation header if it exists.