26 5月技术实战3 分钟context.WithValue 不是 map,是一条链函数签名很干净,代码却越来越难查。你打开一个 Go 函数,只看到一个 ctx context.Context。再往里翻,发现 user id 从 ctx.Value 里取,tenant 从 ctx.Value 里取,trace id 从 …