feat: update trquest_id trace_id

This commit is contained in:
2025-10-26 14:08:16 +08:00
parent 561ba88bc9
commit 1a4665dffb
2 changed files with 12 additions and 12 deletions

View File

@ -29,7 +29,7 @@ func GinCtxToContext(ctx *gin.Context) context.Context {
requestData[fmt.Sprintf("%v", k)] = v
}
if nil != ctx.Request {
requestData[consts.GinRequestURIField] = ctx.Request.RequestURI
requestData[consts.GinRequestURIField] = ctx.Request.URL.Path
requestData[consts.GinRequestMethodField] = ctx.Request.Method
}