mirror of
https://github.com/eolinker/apinto
synced 2025-10-29 19:21:49 +08:00
proxy表指标:修改记录timestamp时间为转发开始时间
This commit is contained in:
@@ -3,8 +3,6 @@ package http_router
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/eolinker/eosc/utils"
|
||||
|
||||
http_service "github.com/eolinker/apinto/node/http-context"
|
||||
|
||||
http_complete "github.com/eolinker/apinto/drivers/router/http-router/http-complete"
|
||||
@@ -51,10 +49,7 @@ func (h *httpHandler) ServeHTTP(ctx eocontext.EoContext) {
|
||||
}
|
||||
ctx = wsCtx
|
||||
}
|
||||
globalLabels := utils.GlobalLabelGet()
|
||||
for key, value := range globalLabels {
|
||||
ctx.SetLabel(key, value)
|
||||
}
|
||||
|
||||
//Set Label
|
||||
ctx.SetLabel("api", h.routerName)
|
||||
ctx.SetLabel("api_id", h.routerId)
|
||||
|
||||
Reference in New Issue
Block a user