diff --git a/go/core/action_test.go b/go/core/action_test.go index 5bf24b5a0..0c4451d06 100644 --- a/go/core/action_test.go +++ b/go/core/action_test.go @@ -114,17 +114,19 @@ func TestActionTracing(t *testing.T) { if err != nil { t.Fatal(err) } + provider := "test" tc := tracing.NewTestOnlyTelemetryClient() r.TracingState().WriteTelemetryImmediate(tc) const actionName = "TestTracing-inc" - a := defineAction(r, "test", actionName, atype.Custom, nil, nil, inc) + a := defineAction(r, provider, actionName, atype.Custom, nil, nil, inc) if _, err := a.Run(context.Background(), 3, nil); err != nil { t.Fatal(err) } // The same trace store is used for all tests, so there might be several traces. // Look for this one, which has a unique name. + fullActionName := provider + '/' + actionName for _, td := range tc.Traces { - if td.DisplayName == actionName { + if td.DisplayName == fullActionName { // Spot check: expect a single span. if g, w := len(td.Spans), 1; g != w { t.Errorf("got %d spans, want %d", g, w)