From 519a7ba7067e1d6ec73b46c604eaaca998eceb91 Mon Sep 17 00:00:00 2001 From: David Dworken Date: Thu, 7 Sep 2023 22:03:03 -0700 Subject: [PATCH] Add OS tag for datadog test export --- client/client_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client_test.go b/client/client_test.go index ca90f07..4c83451 100644 --- a/client/client_test.go +++ b/client/client_test.go @@ -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{"result:passed", "test:" + testName}, 1.0) - GLOBAL_STATSD.Distribution("test_retry_count", float64(i), []string{"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, "os:" + runtime.GOOS}, 1.0) } break } else { 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) } } }