Skip to content

Commit

Permalink
Update contrib/google.golang.org/grpc/example_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Nusbaum <kyle@datadog.com>
  • Loading branch information
katiehockman and knusbaum committed Dec 1, 2022
1 parent 90dd650 commit 48c24b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/google.golang.org/grpc/example_test.go
Expand Up @@ -20,8 +20,8 @@ func Example_client() {
ui := grpctrace.UnaryClientInterceptor(grpctrace.WithServiceName("my-grpc-client"))

// Dial in using the created interceptor.
// Note: grpc.Dial does not support multiple UnaryInterceptor options directly.
// If this is needed, use grpc.WithChainUnaryInterceptor instead.
// Note: To use multiple UnaryInterceptors with grpc.Dial, you must use
// grpc.WithChainUnaryInterceptor instead.
conn, err := grpc.Dial("localhost:50051", grpc.WithInsecure(),
grpc.WithStreamInterceptor(si), grpc.WithUnaryInterceptor(ui))
if err != nil {
Expand Down

0 comments on commit 48c24b9

Please sign in to comment.