diff --git a/internal/pkg/instrumentation/bpf/database/sql/probe_test.go b/internal/pkg/instrumentation/bpf/database/sql/probe_test.go index 80d490eaa..1bea454e9 100644 --- a/internal/pkg/instrumentation/bpf/database/sql/probe_test.go +++ b/internal/pkg/instrumentation/bpf/database/sql/probe_test.go @@ -4,6 +4,7 @@ package sql import ( + "os" "testing" "time" @@ -70,6 +71,8 @@ func BenchmarkProcessFn(b *testing.B) { } func TestProbeConvertEvent(t *testing.T) { + err := os.Setenv(IncludeDBOperationEnvVar, "true") + assert.NoError(t, err) start := time.Unix(0, time.Now().UnixNano()) // No wall clock. end := start.Add(1 * time.Second)