pub fn set_block_id(&self, block_id: api::BlockId) {
        let cell = self.inner.get_or_default();
        if let Some(metadata) = &mut *cell.borrow_mut() {
            metadata.block_id = Some(block_id);
        }
    }
Sets the block ID for the current JSON-RPC method call. It will be used as a metric label for method latency etc.

This should be called inside JSON-RPC method handlers; otherwise, this method is a no-op.
core/node/api_server/src/web3/backend_jsonrpsee/metadata.rs