aboutsummaryrefslogtreecommitdiff
path: root/grpclb
diff options
context:
space:
mode:
authorKun Zhang <zhangkun83@users.noreply.github.com>2017-09-25 15:38:48 -0700
committerGitHub <noreply@github.com>2017-09-25 15:38:48 -0700
commita6653bb135ccf8352815f41036dd6cdf76f38fb8 (patch)
treeceeba76edb7d2565e14257fc8424038ec3c498da /grpclb
parent5ac9ad0c1f76564fe745865feda2cab79363ee1e (diff)
downloadgrpc-grpc-java-a6653bb135ccf8352815f41036dd6cdf76f38fb8.tar.gz
core/compiler: register Span names for code-generated methods (take 2)
This is a more favorable approach than #3467. Doing the registration in MethodDescriptor should allow us to deregister in case the generated stub and its MethodDescriptors are garbage-collected routinely, e.g., if they are loaded by a separate ClassLoader.
Diffstat (limited to 'grpclb')
-rw-r--r--grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java b/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java
index 76fb80e75..9ee54dfea 100644
--- a/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java
+++ b/grpclb/src/generated/main/grpc/io/grpc/grpclb/LoadBalancerGrpc.java
@@ -34,6 +34,7 @@ public final class LoadBalancerGrpc {
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"grpc.lb.v1.LoadBalancer", "BalanceLoad"))
+ .setRegisterForTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.grpc.grpclb.LoadBalanceRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(