Skip to content

fix(gc): always propagate correlation ID from agent to workers

João Pereira requested to merge improve-gc-logs into master

While working on &6443 (closed) I noticed two problems:

  1. The agent logger was not being used. I saw this because there are no log entries with component=registry.gc.Agent;
  2. 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

Merge request reports