Skip to content

Commit

Permalink
调整数据结构,移除fs向下依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 22, 2023
1 parent 5ebee9f commit 9bddca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serveMux.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (mux *serveMux) HandleRoute(route *context.HttpRoute) {
// 解析报文、组装httpContext
httpContext := context.NewHttpContext(route, w, r)
// 创建链路追踪上下文
trackContext := container.Resolve[trace.IManager]().EntryWebApi(httpContext.URI.Host, httpContext.URI.Url, httpContext.Method, httpContext.ContentType, httpContext.Header, "", httpContext.URI.GetRealIp())
trackContext := container.Resolve[trace.IManager]().EntryWebApi(httpContext.URI.Host, httpContext.URI.Url, httpContext.Method, httpContext.ContentType, httpContext.Header.ToMap(), "", httpContext.URI.GetRealIp())
// 结束链路追踪
defer trackContext.End()
// 记录出入参
Expand Down

0 comments on commit 9bddca0

Please sign in to comment.