File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -230,13 +230,16 @@ func requestHook(ctx context.Context, req *http.Request) func(resp *http.Respons
230
230
}
231
231
}
232
232
233
- // EnableGRPCTracingDialOption enables tracing of requests that are sent over a
234
- // gRPC connection.
233
+ // EnableGRPCTracingDialOption traces all outgoing requests from a gRPC client.
234
+ // The calling context should already have a *trace.Span; a child span will be
235
+ // created for the outgoing gRPC call. If the calling context doesn't have a span,
236
+ // the call will not be traced.
237
+ //
235
238
// The functionality in gRPC that this relies on is currently experimental.
236
239
var EnableGRPCTracingDialOption grpc.DialOption = grpc .WithUnaryInterceptor (grpc .UnaryClientInterceptor (grpcUnaryInterceptor ))
237
240
238
- // EnableGRPCTracing enables tracing of requests for clients that use gRPC
239
- // connections.
241
+ // EnableGRPCTracing automatically traces all gRPC calls from cloud.google.com/go clients.
242
+ //
240
243
// The functionality in gRPC that this relies on is currently experimental.
241
244
var EnableGRPCTracing option.ClientOption = option .WithGRPCDialOption (EnableGRPCTracingDialOption )
242
245
You can’t perform that action at this time.
0 commit comments