Skip to content

Commit 7564f60

Browse files
committed
grpc-js: Add tracing of channel options in channel and subchannel constructors
1 parent b904997 commit 7564f60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/grpc-js/src/channel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export class ChannelImplementation implements Channel {
311311
new MaxMessageSizeFilterFactory(this.options),
312312
new CompressionFilterFactory(this),
313313
]);
314-
this.trace('Constructed channel');
314+
this.trace('Channel constructed with options ' + JSON.stringify(options, undefined, 2));
315315
}
316316

317317
private getChannelzInfo(): ChannelInfo {

packages/grpc-js/src/subchannel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ export class Subchannel {
229229
this.channelzRef = registerChannelzSubchannel(this.subchannelAddressString, () => this.getChannelzInfo());
230230
this.channelzTrace = new ChannelzTrace();
231231
this.channelzTrace.addTrace('CT_INFO', 'Subchannel created');
232-
this.trace('Subchannel constructed');
232+
this.trace('Subchannel constructed with options ' + JSON.stringify(options, undefined, 2));
233233
}
234234

235235
private getChannelzInfo(): SubchannelInfo {

0 commit comments

Comments
 (0)