aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/client_channel_channelz.h
diff options
context:
space:
mode:
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);
};