diff --git a/ddtrace/tracer/tracer.go b/ddtrace/tracer/tracer.go index 7a883342e3..afb8d44d05 100644 --- a/ddtrace/tracer/tracer.go +++ b/ddtrace/tracer/tracer.go @@ -356,7 +356,7 @@ func newTracer(opts ...StartOption) *tracer { if v == "" { v = "unknown" } - t.statsd.Incr("datadog.tracer.instrumentations", []string{fmt.Sprintf("instrumentation:%s", name), fmt.Sprintf("instrumentation_version:%s", v)}, 1) + t.statsd.Incr("datadog.tracer.integrations", []string{fmt.Sprintf("integration:%s", name), fmt.Sprintf("integration_version:%s", v)}, 1) } t.wg.Add(1) diff --git a/ddtrace/tracer/tracer_test.go b/ddtrace/tracer/tracer_test.go index c95eb21804..133b724e02 100644 --- a/ddtrace/tracer/tracer_test.go +++ b/ddtrace/tracer/tracer_test.go @@ -273,14 +273,14 @@ func TestTracerStart(t *testing.T) { assert.True(conf.Instrumented) counts := tg.Counts() - assert.Equal(int64(1), counts["datadog.tracer.instrumentations"]) + assert.Equal(int64(1), counts["datadog.tracer.integrations"]) calls := tg.IncrCalls() - for _, c := range statsdtest.FilterCallsByName(calls, "datadog.tracer.instrumentations") { - assert.EqualValues(c.GetTags(), []string{"instrumentation:chi", "instrumentation_version:unknown"}) + for _, c := range statsdtest.FilterCallsByName(calls, "datadog.tracer.integrations") { + assert.EqualValues(c.GetTags(), []string{"integration:chi", "integration_version:unknown"}) return } - assert.Fail("expected instrumentation to have appropriate tags") + assert.Fail("expected integration to have appropriate tags") }) }