This pull adds a new constructor function that takes in an http.Transport. This would allow users to pass in instrumented transports to support observability efforts and trace API requests to the MAAS backend.
I think a move towards a builder / option pattern would be more elegant here but I'm keeping my changes minimal.
This pull adds a new constructor function that takes in an
http.Transport
. This would allow users to pass in instrumented transports to support observability efforts and trace API requests to the MAAS backend.I think a move towards a builder / option pattern would be more elegant here but I'm keeping my changes minimal.
Fixes https://github.com/maas/gomaasclient/issues/32