Skip to content

Commit 4cb1e4c

Browse files
committed
Log root error to span, not to console
Signed-off-by: Yuri Shkuro <[email protected]>
1 parent bf18645 commit 4cb1e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func (c *Config) runTest(tracerProvider trace.TracerProvider) {
123123

124124
err := endpoint.Call(ctx, tracerProvider)
125125
if err != nil {
126-
log.Printf("transaction failed: %v", err)
126+
rootSpan.RecordError(err)
127127
}
128128
if c.SleepBetweenRequests != 0 {
129129
time.Sleep(c.SleepBetweenRequests)

0 commit comments

Comments
 (0)