Better API error logging for internal inter-service communication

A while back we had an issue where the Runner was receiving 4xx status code via API in some cases and we couldn't understand why.

We tried to look at Kibana logs but we could not distinguish why was 4xx status code being returned. We would have sent an error message with the reason of the failure but we don't log that.

We could enable response body logging if (1) status code is 4xx or 5xx AND (2) API endpoint is for internal communication, e.g.:

  • backend <-> Runner
  • backend <-> frontend
  • anything else?
Edited Sep 30, 2019 by Fabio Pitino
Assignee Loading
Time tracking Loading