@@ -51,6 +51,10 @@ const FLASHBOTS_EMPTY_BLOCKS_HELP: &str = "Number of empty blocks skipped";
5151const FLASHBOTS_SUBMISSIONS : & str = "signet.builder.flashbots.submissions" ;
5252const FLASHBOTS_SUBMISSIONS_HELP : & str = "Number of submission attempts to Flashbots" ;
5353
54+ const FLASHBOTS_SUBMISSION_DURATION_MS : & str = "signet.builder.flashbots.submission_duration_ms" ;
55+ const FLASHBOTS_SUBMISSION_DURATION_MS_HELP : & str =
56+ "Duration of Flashbots bundle submission requests in milliseconds" ;
57+
5458// -- Block Building --
5559const BUILT_BLOCKS : & str = "signet.builder.built_blocks" ;
5660const BUILT_BLOCKS_HELP : & str = "Number of blocks built by the simulator" ;
@@ -89,6 +93,7 @@ static DESCRIBE: LazyLock<()> = LazyLock::new(|| {
8993 describe_counter ! ( FLASHBOTS_BUNDLE_PREP_FAILURES , FLASHBOTS_BUNDLE_PREP_FAILURES_HELP ) ;
9094 describe_counter ! ( FLASHBOTS_EMPTY_BLOCKS , FLASHBOTS_EMPTY_BLOCKS_HELP ) ;
9195 describe_counter ! ( FLASHBOTS_SUBMISSIONS , FLASHBOTS_SUBMISSIONS_HELP ) ;
96+ describe_histogram ! ( FLASHBOTS_SUBMISSION_DURATION_MS , FLASHBOTS_SUBMISSION_DURATION_MS_HELP ) ;
9297
9398 // Block building
9499 describe_counter ! ( BUILT_BLOCKS , BUILT_BLOCKS_HELP ) ;
@@ -162,6 +167,12 @@ pub fn flashbots_submissions() -> Counter {
162167 counter ! ( FLASHBOTS_SUBMISSIONS )
163168}
164169
170+ /// Histogram for Flashbots bundle submission duration in milliseconds.
171+ pub fn flashbots_submission_duration_ms ( ) -> Histogram {
172+ LazyLock :: force ( & DESCRIBE ) ;
173+ histogram ! ( FLASHBOTS_SUBMISSION_DURATION_MS )
174+ }
175+
165176// -- Block Building --
166177
167178/// Counter for blocks built by the simulator.
0 commit comments