Publish EL Info in Metrics (#7052)

Since we now know the EL version, we should publish this to our metrics periodically.
This commit is contained in:
ethDreamer
2025-05-21 21:51:30 -05:00
committed by GitHub
parent ce8d0814ad
commit 6af8c187e0
3 changed files with 36 additions and 2 deletions

View File

@@ -1554,10 +1554,14 @@ impl<E: EthSpec> ExecutionLayer<E> {
&self,
age_limit: Option<Duration>,
) -> Result<Vec<ClientVersionV1>, Error> {
self.engine()
let versions = self
.engine()
.request(|engine| engine.get_engine_version(age_limit))
.await
.map_err(Into::into)
.map_err(Into::<Error>::into)?;
metrics::expose_execution_layer_info(&versions);
Ok(versions)
}
/// Used during block production to determine if the merge has been triggered.