Fix datadog tags to be passed as key/values

This commit is contained in:
David Dworken 2023-09-07 21:05:30 -07:00
parent 2154d9e707
commit e5864c9a16
No known key found for this signature in database

View File

@ -208,13 +208,13 @@ func runTestsWithExtraRetries(parentT *testing.T, testName string, testFunc func
})
if rt.succeeded {
if GLOBAL_STATSD != nil {
GLOBAL_STATSD.Incr("test_status", []string{"passed", testName}, 1.0)
GLOBAL_STATSD.Distribution("test_retry_count", float64(i), []string{testName}, 1.0)
GLOBAL_STATSD.Incr("test_status", []string{"result:passed", "test:" + testName}, 1.0)
GLOBAL_STATSD.Distribution("test_retry_count", float64(i), []string{"test:" + testName}, 1.0)
}
break
} else {
if GLOBAL_STATSD != nil {
GLOBAL_STATSD.Incr("test_status", []string{"failed", testName}, 1.0)
GLOBAL_STATSD.Incr("test_status", []string{"result:failed", "test:" + testName}, 1.0)
}
}
}