diff --git a/params/version.go b/params/version.go index 0fa58e33fd..cc4add1c6f 100644 --- a/params/version.go +++ b/params/version.go @@ -30,13 +30,15 @@ const ( ) var ( - borInfo = metrics.NewRegisteredGaugeInfo("bor/info", nil) + // borInfoGauge stores Bor git commit and version details. + borInfoGauge = metrics.NewRegisteredGaugeInfo("bor/info", nil) + GitCommit string ) -// UpdateBorInfo updates the bor_info with the current git commit and version details. +// UpdateBorInfo updates the bor_info metric with the current git commit and version details. func UpdateBorInfo() { - borInfo.Update(metrics.GaugeInfoValue{ + borInfoGauge.Update(metrics.GaugeInfoValue{ "commit": GitCommit, "version": VersionWithMeta, })