core: end telemetry span for ApplyTransactionWithEVM if error is returned (#33955)

This commit is contained in:
jwasinger 2026-03-11 02:41:43 -04:00 committed by GitHub
parent f6068e3fb2
commit 32f05d68a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -108,12 +108,12 @@ func (p *StateProcessor) Process(ctx context.Context, block *types.Block, stated
receipt, err := ApplyTransactionWithEVM(msg, gp, statedb, blockNumber, blockHash, context.Time, tx, evm)
if err != nil {
spanEnd(&err)
return nil, fmt.Errorf("could not apply tx %d [%v]: %w", i, tx.Hash().Hex(), err)
}
receipts = append(receipts, receipt)
allLogs = append(allLogs, receipt.Logs...)
spanEnd(&err)
spanEnd(nil)
}
requests, err := postExecution(ctx, config, block, allLogs, evm)
if err != nil {