@@ -36,9 +36,6 @@ use crate::{
3636
3737use super :: confirm:: { Eip7702ConfirmationHandler , Eip7702ConfirmationJobData } ;
3838
39- const EIP7702_SEND_QUEUE_ID : & str = "eip7702_send" ;
40- const EIP7702_CONFIRM_QUEUE_ID : & str = "eip7702_confirm" ;
41-
4239// --- Job Payload ---
4340#[ derive( Serialize , Deserialize , Debug , Clone ) ]
4441#[ serde( rename_all = "camelCase" ) ]
@@ -178,7 +175,7 @@ where
178175 type ErrorData = Eip7702SendError ;
179176 type JobData = Eip7702SendJobData ;
180177
181- #[ tracing:: instrument( skip( self , job) , fields( transaction_id = job. job. id, chain_id = job . job . data . chain_id , client_id = ?job . job . data . rpc_credentials . client_id_for_logs ( ) , queue_id = EIP7702_SEND_QUEUE_ID , stage = Self :: stage_name( ) , executor = Self :: executor_name( ) ) ) ]
178+ #[ tracing:: instrument( skip( self , job) , fields( transaction_id = job. job. id, stage = Self :: stage_name( ) , executor = Self :: executor_name( ) ) ) ]
182179 async fn process (
183180 & self ,
184181 job : & BorrowedJob < Self :: JobData > ,
@@ -389,15 +386,7 @@ where
389386
390387 if let Err ( e) = tx. queue_job ( confirmation_job) {
391388 tracing:: error!(
392- transaction_id = %job. job. data. transaction_id,
393- chain_id = job. job. data. chain_id,
394- client_id = job
395- . job
396- . data
397- . rpc_credentials
398- . client_id_for_logs( )
399- . unwrap_or( "unknown" ) ,
400- queue_id = EIP7702_CONFIRM_QUEUE_ID ,
389+ transaction_id = job. job. data. transaction_id,
401390 error = ?e,
402391 "Failed to enqueue confirmation job"
403392 ) ;
@@ -406,15 +395,7 @@ where
406395 // Send webhook
407396 if let Err ( e) = self . queue_success_webhook ( job, success_data, tx) {
408397 tracing:: error!(
409- transaction_id = %job. job. data. transaction_id,
410- chain_id = job. job. data. chain_id,
411- client_id = job
412- . job
413- . data
414- . rpc_credentials
415- . client_id_for_logs( )
416- . unwrap_or( "unknown" ) ,
417- queue_id = EIP7702_SEND_QUEUE_ID ,
398+ transaction_id = job. job. data. transaction_id,
418399 error = ?e,
419400 "Failed to queue success webhook"
420401 ) ;
@@ -430,15 +411,7 @@ where
430411 // Don't modify transaction registry on NACK - job will be retried
431412 if let Err ( e) = self . queue_nack_webhook ( job, nack_data, tx) {
432413 tracing:: error!(
433- transaction_id = %job. job. data. transaction_id,
434- chain_id = job. job. data. chain_id,
435- client_id = job
436- . job
437- . data
438- . rpc_credentials
439- . client_id_for_logs( )
440- . unwrap_or( "unknown" ) ,
441- queue_id = EIP7702_SEND_QUEUE_ID ,
414+ transaction_id = job. job. data. transaction_id,
442415 error = ?e,
443416 "Failed to queue nack webhook"
444417 ) ;
@@ -456,30 +429,14 @@ where
456429 . add_remove_command ( tx. pipeline ( ) , & job. job . data . transaction_id ) ;
457430
458431 tracing:: error!(
459- transaction_id = %job. job. data. transaction_id,
460- chain_id = job. job. data. chain_id,
461- client_id = job
462- . job
463- . data
464- . rpc_credentials
465- . client_id_for_logs( )
466- . unwrap_or( "unknown" ) ,
467- queue_id = EIP7702_SEND_QUEUE_ID ,
432+ transaction_id = job. job. data. transaction_id,
468433 error = ?fail_data. error,
469434 "EIP-7702 send job failed"
470435 ) ;
471436
472437 if let Err ( e) = self . queue_fail_webhook ( job, fail_data, tx) {
473438 tracing:: error!(
474- transaction_id = %job. job. data. transaction_id,
475- chain_id = job. job. data. chain_id,
476- client_id = job
477- . job
478- . data
479- . rpc_credentials
480- . client_id_for_logs( )
481- . unwrap_or( "unknown" ) ,
482- queue_id = EIP7702_SEND_QUEUE_ID ,
439+ transaction_id = job. job. data. transaction_id,
483440 error = ?e,
484441 "Failed to queue fail webhook"
485442 ) ;
0 commit comments