优化灰度

This commit is contained in:
huangmengzhu
2023-03-28 10:45:25 +08:00
parent eaed74ae58
commit 4ffa7fabb8
8 changed files with 21 additions and 9 deletions

View File

@@ -68,7 +68,7 @@ func (h *httpHandler) ServeHTTP(ctx eocontext.EoContext) {
ctx.SetLabel("method", httpContext.Request().Method())
ctx.SetLabel("path", httpContext.Request().URI().RequestURI())
ctx.SetLabel("ip", httpContext.Request().ReadIP())
ctx.SetLabel("ip", httpContext.Request().RealIp())
ctx.SetCompleteHandler(h.completeHandler)
ctx.SetApp(h.service)