chore: Reduce block proving timeout worst case#1857
Conversation
|
@Mirko-von-Leipzig regarding trace structure: inner outer |
There was a problem hiding this comment.
Code lgtm, spans are still not quite what I would expect.
To be more specific: we should almost never be using the event! style macros. We should be storing almost all information in the span, including if that span error'd.
An error happens? Mark the span as an error, don't emit an error!.
Want to emit some values? Attach it to the span. I would only expect to see event! macros if there is some sort of tiny subevent that happens within the span where it doesn't make sense to attach it. An example would be committing a block, and you might want to trace the transactions being committed so you emit
for tx in block.transactions() {
info!(transaction.id, "transaction committed");
}The sort of span tree I would expect is something like (names are just placeholders):
prove_block (%block.number, %block.commitment, etc)
- remote_prover (%retry=0, %retry.limit=N, error=%..)
- remote_prover (%retry=1, ..)
- save_proof
- ...
|
@Mirko-von-Leipzig note that I have removed the Spans without failure (notice the proven_tip gap fill after in-sequence block arrives) |
Closes #1855.
Also adds a commit missed in last block proving PR (return new_tip instead of vec).