aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/client_channel_channelz.h
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-07-29 20:30:05 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-07-29 20:30:05 -0700
commit58db94e5d9f3e55f14760f936a42e5e6ddb6bd5b (patch)
tree12ba6c84da4663015b7bd1b719c16d162baccec5 /src/core/ext/filters/client_channel/client_channel_channelz.h
parent2428109608342d715ac4701f80ba61789e208357 (diff)
reviewer comments
Diffstat (limited to 'src/core/ext/filters/client_channel/client_channel_channelz.h')
-rw-r--r--src/core/ext/filters/client_channel/client_channel_channelz.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/ext/filters/client_channel/client_channel_channelz.h b/src/core/ext/filters/client_channel/client_channel_channelz.h
index f5344c049e..735ffacfd2 100644
--- a/src/core/ext/filters/client_channel/client_channel_channelz.h
+++ b/src/core/ext/filters/client_channel/client_channel_channelz.h
@@ -76,14 +76,17 @@ class SubchannelNode : public BaseNode {
grpc_json* RenderJson() override;
- CallCountingAndTracingNode* counter_and_tracer() {
- return &counter_and_tracer_;
- }
+ // proxy methods to composed classes.
+ ChannelTrace* trace() { return trace_.get(); }
+ void RecordCallStarted() { call_counter_.RecordCallStarted(); }
+ void RecordCallFailed() { call_counter_.RecordCallFailed(); }
+ void RecordCallSucceeded() { call_counter_.RecordCallSucceeded(); }
private:
grpc_subchannel* subchannel_;
UniquePtr<char> target_;
- CallCountingAndTracingNode counter_and_tracer_;
+ CallCountingHelper call_counter_;
+ ManualConstructor<ChannelTrace> trace_;
void PopulateConnectivityState(grpc_json* json);
};