Skip to content

Commit 2bb0ee0

Browse files
committed
chore: Add comments for setting the sampledLocalTracing flag
1 parent 9aafe21 commit 2bb0ee0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gapic-generator-java/src/main/java/com/google/api/generator/gapic/composer/grpc/GrpcServiceStubClassComposer.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ protected Statement createMethodDescriptorVariableDecl(
141141
.apply("setResponseMarshaller", protoUtilsMarshallerFn.apply(methodInvocationArg))
142142
.apply(methodDescriptorMaker);
143143

144+
// The sampledToLocalTracing flag is set to true for all gRPC MethodDescriptors in GAPICs
145+
// This flag enables captures for specific method names to help provide more detailed metrics
144146
methodDescriptorMaker =
145147
methodMakerFn
146148
.apply(

0 commit comments

Comments
 (0)