Skip to content

Commit

Permalink
fix: http request metrics(#1611) (#1612)
Browse files Browse the repository at this point in the history
  • Loading branch information
eroznik authored Oct 29, 2024
1 parent 47548c0 commit b2e6d34
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/driver/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ func (r *RegistryDefault) ReadRouter(ctx context.Context) http.Handler {
}
}

n.UseHandler(br)
n.Use(r.PrometheusManager())
n.UseHandler(br)

if r.sqaService != nil {
n.Use(r.sqaService)
Expand Down Expand Up @@ -385,8 +385,8 @@ func (r *RegistryDefault) WriteRouter(ctx context.Context) http.Handler {
}
}

n.UseHandler(pr)
n.Use(r.PrometheusManager())
n.UseHandler(pr)

if r.sqaService != nil {
n.Use(r.sqaService)
Expand Down Expand Up @@ -422,8 +422,8 @@ func (r *RegistryDefault) OPLSyntaxRouter(ctx context.Context) http.Handler {
}
}

n.UseHandler(pr)
n.Use(r.PrometheusManager())
n.UseHandler(pr)

if r.sqaService != nil {
n.Use(r.sqaService)
Expand Down Expand Up @@ -554,8 +554,8 @@ func (r *RegistryDefault) metricsRouter(ctx context.Context) http.Handler {

r.PrometheusManager().RegisterRouter(router)
r.MetricsHandler().SetRoutes(router)
n.UseHandler(router)
n.Use(r.PrometheusManager())
n.UseHandler(router)

var handler http.Handler = n
options, enabled := r.Config(ctx).CORS("metrics")
Expand Down

0 comments on commit b2e6d34

Please sign in to comment.