siso: forward the caller's trace context through the proxy The proxy forwarded only the REAPI RequestMetadata upstream, so a build running through `siso proxy` lost its trace context: siso's client writes grpc-trace-bin, the proxy dropped it, and RBE saw the RPC with no parent span. The server-side spans were orphaned instead of nesting under the step that issued the RPC, which is what the same build gets when it talks to RBE directly. Forward grpc-trace-bin alongside the RequestMetadata. Each upstream call belongs to exactly one incoming RPC, so forwarding the caller's value does not combine trace contexts. This relies on the proxy not setting Option.TracerProvider. If it did, its own client would write grpc-trace-bin via the tracing dial option and the forwarded value would be a duplicate. Change-Id: I3aedd2c0759a0021aa473cb8a295d03d92712070 Reviewed-on: https://chromium-review.googlesource.com/c/build/+/8130017 Reviewed-by: Yuke Liao <liaoyuke@google.com> Reviewed-by: Fumitoshi Ukai <ukai@google.com> Commit-Queue: Philipp Wollermann <philwo@google.com>
This repository contains tools developed and owned by the Chrome Build Team.
The steps for getting the code are:
git clone https://chromium.googlesource.com/buildWe use the standard Go module workflow to work on our projects.