mirror of
https://github.com/ddworken/hishtory.git
synced 2025-08-18 18:58:54 +02:00
Update metrics exporter output to include whether GLOBAL_STATSD is nil
This commit is contained in:
@@ -48,8 +48,12 @@ func main() {
|
|||||||
for testId, count := range NUM_TEST_RETRIES {
|
for testId, count := range NUM_TEST_RETRIES {
|
||||||
GLOBAL_STATSD.Distribution("test_retry_count", float64(count), []string{"test:" + testId, "os:" + runtime.GOOS}, 1.0)
|
GLOBAL_STATSD.Distribution("test_retry_count", float64(count), []string{"test:" + testId, "os:" + runtime.GOOS}, 1.0)
|
||||||
}
|
}
|
||||||
|
if GLOBAL_STATSD == nil {
|
||||||
|
fmt.Printf("Skipped uploading data about %d tests to datadog because GLOBAL_STATSD==nil\n", len(NUM_TEST_RETRIES))
|
||||||
|
} else {
|
||||||
fmt.Printf("Uploaded data about %d tests to datadog\n", len(NUM_TEST_RETRIES))
|
fmt.Printf("Uploaded data about %d tests to datadog\n", len(NUM_TEST_RETRIES))
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
type eventHandler struct{}
|
type eventHandler struct{}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user