From 3a6bc96474e2663190c55c4704b4e764430cc4a5 Mon Sep 17 00:00:00 2001 From: Joshua MacDonald Date: Tue, 4 Oct 2022 16:39:13 -0700 Subject: [PATCH] instrumentation/runtime for 1.19.x (#300) --- lightstep/instrumentation/runtime/builtin_119_test.go | 2 +- lightstep/instrumentation/runtime/builtin_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lightstep/instrumentation/runtime/builtin_119_test.go b/lightstep/instrumentation/runtime/builtin_119_test.go index 87fa3748..886c911f 100644 --- a/lightstep/instrumentation/runtime/builtin_119_test.go +++ b/lightstep/instrumentation/runtime/builtin_119_test.go @@ -17,7 +17,7 @@ package runtime var expectRuntimeMetrics = map[string]int{ - "cgo-to-c-calls": 1, + "cgo.go-to-c-calls": 1, "gc.cycles": 2, "gc.heap.allocs": 1, "gc.heap.allocs.objects": 1, diff --git a/lightstep/instrumentation/runtime/builtin_test.go b/lightstep/instrumentation/runtime/builtin_test.go index e9fa12a5..f2c8ab5a 100644 --- a/lightstep/instrumentation/runtime/builtin_test.go +++ b/lightstep/instrumentation/runtime/builtin_test.go @@ -63,7 +63,7 @@ func TestBuiltinRuntimeMetrics(t *testing.T) { if expect[name] > 1 { require.Equal(t, 1, len(rec.Attributes)) } else { - require.Equal(t, 1, expect[name]) + require.Equal(t, 1, expect[name], "for %v", rec.InstrumentName) require.Equal(t, []attribute.KeyValue(nil), rec.Attributes) } allNames[name]++