1
0
mirror of https://github.com/ddworken/hishtory.git synced 2025-07-10 09:27:19 +02:00

Add OS tag for datadog test export

This commit is contained in:
David Dworken
2023-09-07 22:03:03 -07:00
parent fe75d67ede
commit 519a7ba706

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