mirror of
https://github.com/grpc/grpc-node.git
synced 2025-12-08 18:23:54 +00:00
grpc-js: Add tracing of channel options in channel and subchannel constructors
This commit is contained in:
parent
b904997b82
commit
7564f60dcb
@ -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 {
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user