diff --git a/fhevm/precompiles.go b/fhevm/precompiles.go index 3e6cfab..343ccd3 100644 --- a/fhevm/precompiles.go +++ b/fhevm/precompiles.go @@ -53,6 +53,9 @@ func FheLibRun(environment EVMEnvironment, caller common.Address, addr common.Ad if ctx := environment.OtelContext(); ctx != nil { _, span := otel.Tracer("fhevm").Start(ctx, fheLibMethod.name) ret, err = fheLibMethod.Run(environment, caller, addr, input, readOnly, span) + if err != nil { + span.RecordError(err) + } span.End() } else { ret, err = fheLibMethod.Run(environment, caller, addr, input, readOnly, nil)