grpc-java/core
Kun Zhang 83b92cfc9f
core: pass transport attributes to ClientStreamTracer.Factory.newClientStreamTracer() (#5380)
This will be a new override.  The old override is now deprecated.

In order to pass new information without adding new overrides, I shoved most information
into an object called StreamInfo.  The Metadata is left out to draw attention because
it's mutable.

Motivation: this is needed for correctly supporting pick_first in GRPCLB.  GRPCLB needs to
add a token to the headers, and the token varies among servers.  With round_robin, GRPCLB
create a Subchannel for each server, thus can attach the token when the Subchannel is picked.
To implement pick_first, all server addresses will be put in a single Subchannel, we will
need to add the header in newClientStreamTracer(), by looking up the server address from
the transport attributes and deciding which token to add.
2019-02-21 11:13:51 -08:00
..
src core: pass transport attributes to ClientStreamTracer.Factory.newClientStreamTracer() (#5380) 2019-02-21 11:13:51 -08:00
BUILD.bazel core: Add "fake" dependency on Guava's failureaccess 2019-02-12 14:17:28 -08:00
build.gradle Upgrade Guava to 26.0-android 2019-02-01 10:16:38 -08:00