feat: fix the order of Method and Name in System Info (#1797)

* fix: fixed the order of Method and Name in System Info

* fix: add i18n for System Info
This commit is contained in:
OutOfEastGate
2023-04-28 22:11:10 +08:00
committed by GitHub
parent f272be67ab
commit 66c15578b1
13 changed files with 67 additions and 26 deletions

View File

@ -189,7 +189,7 @@ func (c *ApiController) Finish() {
startTime := c.Ctx.Input.GetData("startTime")
if startTime != nil {
latency := time.Since(startTime.(time.Time)).Milliseconds()
object.ApiLatency.WithLabelValues(c.Ctx.Input.Method(), c.Ctx.Input.URL()).Observe(float64(latency))
object.ApiLatency.WithLabelValues(c.Ctx.Input.URL(), c.Ctx.Input.Method()).Observe(float64(latency))
}
}
c.Controller.Finish()