diff --git a/exporter/awsemfexporter/config.go b/exporter/awsemfexporter/config.go index a8804c334199..8a153c54c696 100644 --- a/exporter/awsemfexporter/config.go +++ b/exporter/awsemfexporter/config.go @@ -150,8 +150,7 @@ func (config *Config) Validate() error { } func (config *Config) IsEnhancedContainerInsights() bool { - return false // temporarily disable, also need to rename _config to config - // return config.EnhancedContainerInsights && !config.DisableMetricExtraction + return config.EnhancedContainerInsights && !config.DisableMetricExtraction } func (config *Config) IsPulseApmEnabled() bool { diff --git a/exporter/awsemfexporter/config_test.go b/exporter/awsemfexporter/config_test.go index 3d5056d5ab2b..e879462ffd45 100644 --- a/exporter/awsemfexporter/config_test.go +++ b/exporter/awsemfexporter/config_test.go @@ -320,7 +320,7 @@ func TestIsEnhancedContainerInsights(t *testing.T) { cfg := factory.CreateDefaultConfig().(*Config) cfg.EnhancedContainerInsights = true cfg.DisableMetricExtraction = false - assert.False(t, cfg.IsEnhancedContainerInsights()) + assert.True(t, cfg.IsEnhancedContainerInsights()) cfg.EnhancedContainerInsights = false assert.False(t, cfg.IsEnhancedContainerInsights()) cfg.EnhancedContainerInsights = true