[go: up one dir, main page]

Draft: Add roundtripper to log outbound HTTP requests

Taking a stab at #40 here.

We would like to have the ability in Workhorse to log external HTTP requests to object storage providers.

This MR adds a new roundtripper, log.LoggingRoundTripper, which can be used to decorate another roundtripper to measure request duration and output a log line.

There is some overlap with AccessLogger, but maybe that can be another refactor?

Closes #40

Merge request reports

Loading