Skip to content

Commit acd9fcd

Browse files
committed
executor: tracer emptiness checking
1 parent c3a1979 commit acd9fcd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

executor.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ func Execute(p ExecuteParams) (result *Result) {
3333
ctx = context.Background()
3434
}
3535

36+
if p.Tracer == nil {
37+
p.Tracer = NoopTracer{}
38+
}
39+
3640
resultChannel := make(chan *Result)
3741
result = &Result{}
3842

0 commit comments

Comments
 (0)