proxy表指标:修改记录timestamp时间为转发开始时间

This commit is contained in:
Liujian
2022-12-22 15:53:48 +08:00
parent c7b564ec91
commit b93d293f44
26 changed files with 209 additions and 127 deletions

View File

@@ -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)