diff --git a/go.mod b/go.mod index 7e349c6..c00ffb0 100644 --- a/go.mod +++ b/go.mod @@ -12,10 +12,8 @@ require ( github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.18.0 github.com/purini-to/zapmw v1.1.0 - github.com/slok/go-http-metrics v0.11.0 github.com/stretchr/testify v1.8.4 go.uber.org/zap v1.26.0 - golang.org/x/sync v0.6.0 gopkg.in/yaml.v2 v2.4.0 ) diff --git a/go.sum b/go.sum index ac2f541..823739e 100644 --- a/go.sum +++ b/go.sum @@ -71,10 +71,6 @@ github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjR github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog= github.com/shirou/gopsutil v3.21.11+incompatible h1:+1+c1VGhc88SSonWP6foOcLhvnKlUeu/erjjvaPEYiI= github.com/shirou/gopsutil v3.21.11+incompatible/go.mod h1:5b4v6he4MtMOwMlS0TUMTu2PcXUg8+E1lC7eC3UO/RA= -github.com/slok/go-http-metrics v0.11.0 h1:ABJUpekCZSkQT1wQrFvS4kGbhea/w6ndFJaWJeh3zL0= -github.com/slok/go-http-metrics v0.11.0/go.mod h1:ZGKeYG1ET6TEJpQx18BqAJAvxw9jBAZXCHU7bWQqqAc= -github.com/stretchr/objx v0.5.1 h1:4VhoImhV/Bm0ToFkXFi8hXNXwpDRZ/ynw3amt82mzq0= -github.com/stretchr/objx v0.5.1/go.mod h1:/iHQpkQwBD6DLUmQ4pE+s1TXdob1mORJ4/UFdrifcy0= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= github.com/supranational/blst v0.3.11 h1:LyU6FolezeWAhvQk0k6O/d49jqgO52MSDDfYgbeoEm4= diff --git a/internal/rpcgateway/rpcgateway.go b/internal/rpcgateway/rpcgateway.go index 2542bca..86af174 100644 --- a/internal/rpcgateway/rpcgateway.go +++ b/internal/rpcgateway/rpcgateway.go @@ -13,9 +13,6 @@ import ( "github.com/gorilla/mux" "github.com/pkg/errors" "github.com/purini-to/zapmw" - prometheusMetrics "github.com/slok/go-http-metrics/metrics/prometheus" - "github.com/slok/go-http-metrics/middleware" - "github.com/slok/go-http-metrics/middleware/std" "go.uber.org/zap" "go.uber.org/zap/zapcore" "gopkg.in/yaml.v2" @@ -78,12 +75,6 @@ func NewRPCGateway(config RPCGatewayConfig) *RPCGateway { r := mux.NewRouter() - r.Use(std.HandlerProvider("", - middleware.New(middleware.Config{ - Recorder: prometheusMetrics.NewRecorder(prometheusMetrics.Config{}), - })), - ) - r.Use( zapmw.WithZap(zap.L()), zapmw.Request(zapcore.InfoLevel, "request"),