mirror of https://github.com/grpc/grpc-node.git
grpc-js: Trace before call to LB policy picker
This commit is contained in:
parent
8a22f5f2a4
commit
c525025f06
|
@ -102,6 +102,7 @@ export class LoadBalancingCall implements Call {
|
||||||
if (!this.metadata) {
|
if (!this.metadata) {
|
||||||
throw new Error('doPick called before start');
|
throw new Error('doPick called before start');
|
||||||
}
|
}
|
||||||
|
this.trace('Pick called')
|
||||||
const pickResult = this.channel.doPick(this.metadata, this.callConfig.pickInformation);
|
const pickResult = this.channel.doPick(this.metadata, this.callConfig.pickInformation);
|
||||||
const subchannelString = pickResult.subchannel ?
|
const subchannelString = pickResult.subchannel ?
|
||||||
'(' + pickResult.subchannel.getChannelzRef().id + ') ' + pickResult.subchannel.getAddress() :
|
'(' + pickResult.subchannel.getChannelzRef().id + ') ' + pickResult.subchannel.getAddress() :
|
||||||
|
|
Loading…
Reference in New Issue