Skip to content

Find, verify, and analyze leaked credentials

Added API Call Metrics to Docker Source (#4552)

Nabeel Alamd416a804d5a9
diff --git a/pkg/sources/docker/docker.go b/pkg/sources/docker/docker.go
index 25a22f72d..f102ff75b 100644
--- a/pkg/sources/docker/docker.go
+++ b/pkg/sources/docker/docker.go
@@ -502,7 +502,7 @@ func (s *Source) remoteOpts() ([]remote.Option, error) {
}
var opts []remote.Option
- opts = append(opts, remote.WithTransport(defaultTransport))
+ opts = append(opts, remote.WithTransport(common.NewInstrumentedTransport(common.NewCustomTransport(defaultTransport))))
// Configure authentication based on credential type
switch s.conn.GetCredential().(type) {