Skip to content

Conversation

dapplion
Copy link
Collaborator

Issue Addressed

Debugging #8104 it would have been helpful to quickly see in the logs that a specific block was submitted into the HTTP API.

Because we want to optimize the block root computation we don't include it in the logs, and just log the block slot. I believe we can take a minute performance hit to have the block root in all the logs during block publishing.

@dapplion dapplion changed the title Include block root in import log Include block root in publish block logs Sep 24, 2025
current_span.record("provenance", provenance);

let block = unverified_block.inner_block();
let block_root = block.canonical_root();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. We can do block_root.unwrap_or_else here, as block root is already calculated when calling from the publish blinded block path.
  2. If you record this to the span, the block_root field will be available to both the span and all logs in this function:
current_span.record("block_root", ?block_root);

@jimmygchen jimmygchen added waiting-on-author The reviewer has suggested changes and awaits thier implementation. UX-and-logs tracing labels Sep 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tracing UX-and-logs waiting-on-author The reviewer has suggested changes and awaits thier implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants