Skip to content

Commit

Permalink
ft(type): type conversion bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantprateek committed Jul 26, 2023
1 parent 1963bc0 commit 2db4c91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api-gateway/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package handlers

import (
"log"
"strconv"
"strings"
"time"

Expand Down Expand Up @@ -63,7 +64,7 @@ func Gateway() {
start := time.Now()
err := c.Next()
duration := time.Since(start).Seconds()
requestDuration.WithLabelValues(c.Method(), c.Path(), string(c.Response().StatusCode())).Observe(duration)
requestDuration.WithLabelValues(c.Method(), c.Path(), strconv.Itoa(c.Response().StatusCode())).Observe(duration)
return err
})
recordMetrics()
Expand Down

0 comments on commit 2db4c91

Please sign in to comment.