grpc-js: Add tracing of channel options in channel and subchannel constructors

This commit is contained in:
Michael Lumish 2021-10-12 12:25:47 -07:00
parent b904997b82
commit 7564f60dcb
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ export class ChannelImplementation implements Channel {
new MaxMessageSizeFilterFactory(this.options),
new CompressionFilterFactory(this),
]);
this.trace('Constructed channel');
this.trace('Channel constructed with options ' + JSON.stringify(options, undefined, 2));
}
private getChannelzInfo(): ChannelInfo {

View File

@ -229,7 +229,7 @@ export class Subchannel {
this.channelzRef = registerChannelzSubchannel(this.subchannelAddressString, () => this.getChannelzInfo());
this.channelzTrace = new ChannelzTrace();
this.channelzTrace.addTrace('CT_INFO', 'Subchannel created');
this.trace('Subchannel constructed');
this.trace('Subchannel constructed with options ' + JSON.stringify(options, undefined, 2));
}
private getChannelzInfo(): SubchannelInfo {