aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@gmail.com>2017-06-21 10:37:14 -0700
committerGravatar GitHub <noreply@github.com>2017-06-21 10:37:14 -0700
commit892afc209772e34d44e2e7ae43ecc7ff3bf707a4 (patch)
tree0c088ee5bf6e07c6ea4f1aef7dfc9adc7a8b6f85 /src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
parent655a275c032e6fba8c19bf490f25d07407f500c0 (diff)
parent9f3bd3340c94bcec2bde93a293aa63a28daac08f (diff)
Merge pull request #10833 from ncteisen/tracing-overhaul
Tracing Overhaul
Diffstat (limited to 'src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c')
-rw-r--r--src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
index e80b1dcd80..5a5ff2902d 100644
--- a/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
+++ b/src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.c
@@ -1880,6 +1880,9 @@ static bool maybe_add_client_load_reporting_filter(
void grpc_lb_policy_grpclb_init() {
grpc_register_lb_policy(grpc_glb_lb_factory_create());
grpc_register_tracer("glb", &grpc_lb_glb_trace);
+#ifndef NDEBUG
+ grpc_register_tracer("lb_policy_refcount", &grpc_trace_lb_policy_refcount);
+#endif
grpc_channel_init_register_stage(GRPC_CLIENT_SUBCHANNEL,
GRPC_CHANNEL_INIT_BUILTIN_PRIORITY,
maybe_add_client_load_reporting_filter,