Merge pull request #1933 from murgatroid99/grpc-js_channel_option_tracing_1.4.x

grpc-js: Add tracing of channel options in channel and subchannel constructors (1.4.x)
This commit is contained in:
Michael Lumish 2021-10-12 14:45:38 -07:00 committed by GitHub
commit d1aac29e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 {