mirror of
https://github.com/ddworken/hishtory.git
synced 2024-11-21 15:53:32 +01:00
Close dd stats
This commit is contained in:
parent
352e483db5
commit
df48e516ef
@ -10,3 +10,4 @@ os.Unsetenv
|
|||||||
(*github.com/DataDog/datadog-go/statsd.Client).Incr
|
(*github.com/DataDog/datadog-go/statsd.Client).Incr
|
||||||
(*github.com/DataDog/datadog-go/statsd.Client).Distribution
|
(*github.com/DataDog/datadog-go/statsd.Client).Distribution
|
||||||
(*github.com/schollz/progressbar/v3.ProgressBar).Finish
|
(*github.com/schollz/progressbar/v3.ProgressBar).Finish
|
||||||
|
(*github.com/DataDog/datadog-go/statsd.Client).Close
|
||||||
|
@ -28,6 +28,7 @@ func main() {
|
|||||||
log.Fatalf("failed to init datadog: %v", err)
|
log.Fatalf("failed to init datadog: %v", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
defer ddStats.Close()
|
||||||
GLOBAL_STATSD = ddStats
|
GLOBAL_STATSD = ddStats
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("Skipping exporting test stats to datadog\n")
|
fmt.Printf("Skipping exporting test stats to datadog\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user