use of io.grpc.channelz.v1.ChannelTrace in project grpc-java by grpc.
the class ChannelzProtoUtilTest method channelTrace_withoutEvents.
@Test
public void channelTrace_withoutEvents() {
ChannelStats stats = toBuilder(channel.stats).setChannelTrace(new InternalChannelz.ChannelTrace.Builder().setNumEventsLogged(1234).setCreationTimeNanos(1000).build()).build();
ChannelData protoStats = channelData.toBuilder().setTrace(channelTrace).build();
assertEquals(ChannelzProtoUtil.extractChannelData(stats), protoStats);
}
Aggregations