diff --git a/bridge-history-api/internal/route/route.go b/bridge-history-api/internal/route/route.go index f5327a6526..f9fc8fe8c6 100644 --- a/bridge-history-api/internal/route/route.go +++ b/bridge-history-api/internal/route/route.go @@ -22,7 +22,7 @@ func Route(router *gin.Engine, conf *config.Config, reg prometheus.Registerer) { MaxAge: 12 * time.Hour, })) - observability.Use(router, "bridge-history", reg) + observability.Use(router, "bridge_history", reg) r := router.Group("api/") r.POST("/txsbyhashes", controller.HistoryCtrler.PostQueryTxsByHash) diff --git a/bridge-history-api/observability/middleware.go b/bridge-history-api/observability/middleware.go index 6ab482d2c1..03ff90e8a0 100644 --- a/bridge-history-api/observability/middleware.go +++ b/bridge-history-api/observability/middleware.go @@ -4,7 +4,7 @@ import ( "github.com/gin-gonic/gin" "github.com/prometheus/client_golang/prometheus" - "scroll-tech/common/observability/ginmetrics" + "bridge-history-api/observability/ginmetrics" ) // Use register the gin metric diff --git a/bridge-history-api/observability/probes.go b/bridge-history-api/observability/probes.go index bbaabe1a9b..339c1b7422 100644 --- a/bridge-history-api/observability/probes.go +++ b/bridge-history-api/observability/probes.go @@ -4,8 +4,8 @@ import ( "github.com/gin-gonic/gin" "gorm.io/gorm" - "scroll-tech/common/database" - "scroll-tech/common/types" + "bridge-history-api/internal/types" + "bridge-history-api/utils" ) // ProbesController probe check controller @@ -22,7 +22,7 @@ func NewProbesController(db *gorm.DB) *ProbesController { // HealthCheck the api controller for health check func (a *ProbesController) HealthCheck(c *gin.Context) { - if _, err := database.Ping(a.db); err != nil { + if _, err := utils.Ping(a.db); err != nil { types.RenderFatal(c, err) return } diff --git a/bridge-history-api/observability/server.go b/bridge-history-api/observability/server.go index a3ba8e5022..7f5352338e 100644 --- a/bridge-history-api/observability/server.go +++ b/bridge-history-api/observability/server.go @@ -16,7 +16,7 @@ import ( "github.com/urfave/cli/v2" "gorm.io/gorm" - "scroll-tech/common/utils" + "bridge-history-api/utils" ) // Server starts the metrics server on the given address, will be closed when the given diff --git a/common/version/version.go b/common/version/version.go index 0773f190c7..9216e3a59c 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.3.22" +var tag = "v4.3.23" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok {