fix(gc): always propagate correlation ID from agent to workers
While working on &6443 (closed) I noticed two problems:
- The agent logger was not being used. I saw this because there are no log entries with
component=registry.gc.Agent
; - The correlation ID is not present in the agent log entries when starting/stopping and sleeping after a worker run. This makes it impossible to correlate agent and worker log entries.
This MR fixes both by setting the correlation ID at the agent level instead of worker level. On the worker side instead of generating a correlation ID, we try to extract it from the context (passed from the agent).
Edited by João Pereira