@@ -83,6 +83,7 @@ public class GrpcEchoStub extends EchoStub {
8383 .setFullMethodName ("google.showcase.v1beta1.Echo/Echo" )
8484 .setRequestMarshaller (ProtoUtils .marshaller (EchoRequest .getDefaultInstance ()))
8585 .setResponseMarshaller (ProtoUtils .marshaller (EchoResponse .getDefaultInstance ()))
86+ .setSampledToLocalTracing (true )
8687 .build ();
8788
8889 private static final MethodDescriptor <EchoErrorDetailsRequest , EchoErrorDetailsResponse >
@@ -94,6 +95,7 @@ public class GrpcEchoStub extends EchoStub {
9495 ProtoUtils .marshaller (EchoErrorDetailsRequest .getDefaultInstance ()))
9596 .setResponseMarshaller (
9697 ProtoUtils .marshaller (EchoErrorDetailsResponse .getDefaultInstance ()))
98+ .setSampledToLocalTracing (true )
9799 .build ();
98100
99101 private static final MethodDescriptor <FailEchoWithDetailsRequest , FailEchoWithDetailsResponse >
@@ -105,6 +107,7 @@ public class GrpcEchoStub extends EchoStub {
105107 ProtoUtils .marshaller (FailEchoWithDetailsRequest .getDefaultInstance ()))
106108 .setResponseMarshaller (
107109 ProtoUtils .marshaller (FailEchoWithDetailsResponse .getDefaultInstance ()))
110+ .setSampledToLocalTracing (true )
108111 .build ();
109112
110113 private static final MethodDescriptor <ExpandRequest , EchoResponse > expandMethodDescriptor =
@@ -113,6 +116,7 @@ public class GrpcEchoStub extends EchoStub {
113116 .setFullMethodName ("google.showcase.v1beta1.Echo/Expand" )
114117 .setRequestMarshaller (ProtoUtils .marshaller (ExpandRequest .getDefaultInstance ()))
115118 .setResponseMarshaller (ProtoUtils .marshaller (EchoResponse .getDefaultInstance ()))
119+ .setSampledToLocalTracing (true )
116120 .build ();
117121
118122 private static final MethodDescriptor <EchoRequest , EchoResponse > collectMethodDescriptor =
@@ -121,6 +125,7 @@ public class GrpcEchoStub extends EchoStub {
121125 .setFullMethodName ("google.showcase.v1beta1.Echo/Collect" )
122126 .setRequestMarshaller (ProtoUtils .marshaller (EchoRequest .getDefaultInstance ()))
123127 .setResponseMarshaller (ProtoUtils .marshaller (EchoResponse .getDefaultInstance ()))
128+ .setSampledToLocalTracing (true )
124129 .build ();
125130
126131 private static final MethodDescriptor <EchoRequest , EchoResponse > chatMethodDescriptor =
@@ -129,6 +134,7 @@ public class GrpcEchoStub extends EchoStub {
129134 .setFullMethodName ("google.showcase.v1beta1.Echo/Chat" )
130135 .setRequestMarshaller (ProtoUtils .marshaller (EchoRequest .getDefaultInstance ()))
131136 .setResponseMarshaller (ProtoUtils .marshaller (EchoResponse .getDefaultInstance ()))
137+ .setSampledToLocalTracing (true )
132138 .build ();
133139
134140 private static final MethodDescriptor <PagedExpandRequest , PagedExpandResponse >
@@ -139,6 +145,7 @@ public class GrpcEchoStub extends EchoStub {
139145 .setRequestMarshaller (ProtoUtils .marshaller (PagedExpandRequest .getDefaultInstance ()))
140146 .setResponseMarshaller (
141147 ProtoUtils .marshaller (PagedExpandResponse .getDefaultInstance ()))
148+ .setSampledToLocalTracing (true )
142149 .build ();
143150
144151 private static final MethodDescriptor <PagedExpandLegacyRequest , PagedExpandResponse >
@@ -150,6 +157,7 @@ public class GrpcEchoStub extends EchoStub {
150157 ProtoUtils .marshaller (PagedExpandLegacyRequest .getDefaultInstance ()))
151158 .setResponseMarshaller (
152159 ProtoUtils .marshaller (PagedExpandResponse .getDefaultInstance ()))
160+ .setSampledToLocalTracing (true )
153161 .build ();
154162
155163 private static final MethodDescriptor <PagedExpandRequest , PagedExpandLegacyMappedResponse >
@@ -160,6 +168,7 @@ public class GrpcEchoStub extends EchoStub {
160168 .setRequestMarshaller (ProtoUtils .marshaller (PagedExpandRequest .getDefaultInstance ()))
161169 .setResponseMarshaller (
162170 ProtoUtils .marshaller (PagedExpandLegacyMappedResponse .getDefaultInstance ()))
171+ .setSampledToLocalTracing (true )
163172 .build ();
164173
165174 private static final MethodDescriptor <WaitRequest , Operation > waitMethodDescriptor =
@@ -168,6 +177,7 @@ public class GrpcEchoStub extends EchoStub {
168177 .setFullMethodName ("google.showcase.v1beta1.Echo/Wait" )
169178 .setRequestMarshaller (ProtoUtils .marshaller (WaitRequest .getDefaultInstance ()))
170179 .setResponseMarshaller (ProtoUtils .marshaller (Operation .getDefaultInstance ()))
180+ .setSampledToLocalTracing (true )
171181 .build ();
172182
173183 private static final MethodDescriptor <BlockRequest , BlockResponse > blockMethodDescriptor =
@@ -176,6 +186,7 @@ public class GrpcEchoStub extends EchoStub {
176186 .setFullMethodName ("google.showcase.v1beta1.Echo/Block" )
177187 .setRequestMarshaller (ProtoUtils .marshaller (BlockRequest .getDefaultInstance ()))
178188 .setResponseMarshaller (ProtoUtils .marshaller (BlockResponse .getDefaultInstance ()))
189+ .setSampledToLocalTracing (true )
179190 .build ();
180191
181192 private static final MethodDescriptor <ListLocationsRequest , ListLocationsResponse >
@@ -187,6 +198,7 @@ public class GrpcEchoStub extends EchoStub {
187198 ProtoUtils .marshaller (ListLocationsRequest .getDefaultInstance ()))
188199 .setResponseMarshaller (
189200 ProtoUtils .marshaller (ListLocationsResponse .getDefaultInstance ()))
201+ .setSampledToLocalTracing (true )
190202 .build ();
191203
192204 private static final MethodDescriptor <GetLocationRequest , Location > getLocationMethodDescriptor =
@@ -195,6 +207,7 @@ public class GrpcEchoStub extends EchoStub {
195207 .setFullMethodName ("google.cloud.location.Locations/GetLocation" )
196208 .setRequestMarshaller (ProtoUtils .marshaller (GetLocationRequest .getDefaultInstance ()))
197209 .setResponseMarshaller (ProtoUtils .marshaller (Location .getDefaultInstance ()))
210+ .setSampledToLocalTracing (true )
198211 .build ();
199212
200213 private static final MethodDescriptor <SetIamPolicyRequest , Policy > setIamPolicyMethodDescriptor =
@@ -203,6 +216,7 @@ public class GrpcEchoStub extends EchoStub {
203216 .setFullMethodName ("google.iam.v1.IAMPolicy/SetIamPolicy" )
204217 .setRequestMarshaller (ProtoUtils .marshaller (SetIamPolicyRequest .getDefaultInstance ()))
205218 .setResponseMarshaller (ProtoUtils .marshaller (Policy .getDefaultInstance ()))
219+ .setSampledToLocalTracing (true )
206220 .build ();
207221
208222 private static final MethodDescriptor <GetIamPolicyRequest , Policy > getIamPolicyMethodDescriptor =
@@ -211,6 +225,7 @@ public class GrpcEchoStub extends EchoStub {
211225 .setFullMethodName ("google.iam.v1.IAMPolicy/GetIamPolicy" )
212226 .setRequestMarshaller (ProtoUtils .marshaller (GetIamPolicyRequest .getDefaultInstance ()))
213227 .setResponseMarshaller (ProtoUtils .marshaller (Policy .getDefaultInstance ()))
228+ .setSampledToLocalTracing (true )
214229 .build ();
215230
216231 private static final MethodDescriptor <TestIamPermissionsRequest , TestIamPermissionsResponse >
@@ -222,6 +237,7 @@ public class GrpcEchoStub extends EchoStub {
222237 ProtoUtils .marshaller (TestIamPermissionsRequest .getDefaultInstance ()))
223238 .setResponseMarshaller (
224239 ProtoUtils .marshaller (TestIamPermissionsResponse .getDefaultInstance ()))
240+ .setSampledToLocalTracing (true )
225241 .build ();
226242
227243 private final UnaryCallable <EchoRequest , EchoResponse > echoCallable ;
0 commit comments