mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-25 14:32:14 +02:00
Use unqualified test name as test ID since the full package makes the datadog metrics overly verbose
This commit is contained in:
parent
982f7b5f02
commit
ff79707ccf
@ -63,7 +63,7 @@ func main() {
|
|||||||
type eventHandler struct{}
|
type eventHandler struct{}
|
||||||
|
|
||||||
func (eventHandler) Event(event testjson.TestEvent, execution *testjson.Execution) error {
|
func (eventHandler) Event(event testjson.TestEvent, execution *testjson.Execution) error {
|
||||||
testIdentifier := fmt.Sprintf("%s#%s", event.Package, event.Test)
|
testIdentifier := event.Test
|
||||||
if event.Action == testjson.ActionFail {
|
if event.Action == testjson.ActionFail {
|
||||||
GLOBAL_STATSD.Incr("test_status", []string{"result:failed", "test:" + testIdentifier, "os:" + runtime.GOOS}, 1.0)
|
GLOBAL_STATSD.Incr("test_status", []string{"result:failed", "test:" + testIdentifier, "os:" + runtime.GOOS}, 1.0)
|
||||||
NUM_TEST_RETRIES[testIdentifier] += 1
|
NUM_TEST_RETRIES[testIdentifier] += 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user