Skip to content

Draft: Add roundtripper to log outbound HTTP requests

Matthias Käppler requested to merge 40-logging-roundtripper into master

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