From 3eb293aa0b0d357ea98678bb5d3d09d7b154d945 Mon Sep 17 00:00:00 2001 From: mackjmr Date: Thu, 3 Oct 2024 17:07:48 +0200 Subject: [PATCH] [chore] [receiver/awsecscontainermetrics] Use confighttp.NewDefaultClientConfig instead of manually creating struct **Description:** This PR makes usage of `NewDefaultClientConfig` instead of manually creating the confighttp.ClientConfig struct. **Link to tracking Issue:** #35457 --- receiver/awsecscontainermetricsreceiver/factory.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/receiver/awsecscontainermetricsreceiver/factory.go b/receiver/awsecscontainermetricsreceiver/factory.go index 159394fb355e..d8b80223ca72 100644 --- a/receiver/awsecscontainermetricsreceiver/factory.go +++ b/receiver/awsecscontainermetricsreceiver/factory.go @@ -50,7 +50,7 @@ func createMetricsReceiver( if err != nil || endpoint == nil { return nil, fmt.Errorf("unable to detect task metadata endpoint: %w", err) } - clientSettings := confighttp.ClientConfig{} + clientSettings := confighttp.NewDefaultClientConfig() rest, err := ecsutil.NewRestClient(*endpoint, clientSettings, params.TelemetrySettings) if err != nil { return nil, err