diff --git a/.errcheck_excludes.txt b/.errcheck_excludes.txt index e7b0d07..ba5eaf1 100644 --- a/.errcheck_excludes.txt +++ b/.errcheck_excludes.txt @@ -10,3 +10,4 @@ os.Unsetenv (*github.com/DataDog/datadog-go/statsd.Client).Incr (*github.com/DataDog/datadog-go/statsd.Client).Distribution (*github.com/schollz/progressbar/v3.ProgressBar).Finish +(*github.com/DataDog/datadog-go/statsd.Client).Close diff --git a/client/test_metrics_exporter/main.go b/client/test_metrics_exporter/main.go index f9d698b..abb3cab 100644 --- a/client/test_metrics_exporter/main.go +++ b/client/test_metrics_exporter/main.go @@ -28,6 +28,7 @@ func main() { log.Fatalf("failed to init datadog: %v", err) } } + defer ddStats.Close() GLOBAL_STATSD = ddStats } else { fmt.Printf("Skipping exporting test stats to datadog\n")