From 188fa6ce14f2247b2eb58df97e8e327305cbad08 Mon Sep 17 00:00:00 2001 From: Ferlonas Date: Mon, 19 Jul 2021 09:24:07 +0200 Subject: [PATCH] Expose name for external dependency round tripper in creation --- http/transport/external_dependency_round_tripper.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/http/transport/external_dependency_round_tripper.go b/http/transport/external_dependency_round_tripper.go index e8cc07fdd..fd12bcde7 100644 --- a/http/transport/external_dependency_round_tripper.go +++ b/http/transport/external_dependency_round_tripper.go @@ -17,6 +17,10 @@ type ExternalDependencyRoundTripper struct { transport http.RoundTripper } +func NewExternalDependencyRoundTripper(name string) *ExternalDependencyRoundTripper { + return &ExternalDependencyRoundTripper{name: name} +} + // Transport returns the RoundTripper to make HTTP requests func (l *ExternalDependencyRoundTripper) Transport() http.RoundTripper { return l.transport