mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-17 02:50:49 +01:00
Add flush call to metrics exporter so that metrics are flushed before the github action is killed
This commit is contained in:
parent
13233926a7
commit
0413e88321
@ -52,6 +52,10 @@ func main() {
|
||||
if GLOBAL_STATSD == nil {
|
||||
fmt.Printf("Skipped uploading data about %d tests to datadog because GLOBAL_STATSD==nil\n", len(NUM_TEST_RETRIES))
|
||||
} else {
|
||||
err := GLOBAL_STATSD.Flush()
|
||||
if err != nil {
|
||||
log.Fatalf("failed to flush metrics: %v", err)
|
||||
}
|
||||
fmt.Printf("Uploaded data about %d tests to datadog\n", len(NUM_TEST_RETRIES))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user