Skip to content

Commit

Permalink
instrumentation/runtime for 1.19.x (#300)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacd authored Oct 4, 2022
1 parent c9ca848 commit 3a6bc96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lightstep/instrumentation/runtime/builtin_119_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion lightstep/instrumentation/runtime/builtin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]++
Expand Down

0 comments on commit 3a6bc96

Please sign in to comment.