Merge pull request #2383 from murgatroid99/grpc-js_pick_start_log

grpc-js: Trace before call to LB policy picker
This commit is contained in:
Michael Lumish 2023-03-07 10:39:45 -08:00 committed by GitHub
commit e66909d8e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,7 @@ export class LoadBalancingCall implements Call {
if (!this.metadata) {
throw new Error('doPick called before start');
}
this.trace('Pick called')
const pickResult = this.channel.doPick(this.metadata, this.callConfig.pickInformation);
const subchannelString = pickResult.subchannel ?
'(' + pickResult.subchannel.getChannelzRef().id + ') ' + pickResult.subchannel.getAddress() :