Skip to content

Commit

Permalink
Fix typo in comment (#951)
Browse files Browse the repository at this point in the history
Co-authored-by: Tyler Yahn <MrAlias@users.noreply.github.com>
  • Loading branch information
k-yomo and MrAlias authored Jul 20, 2020
1 parent 99c2998 commit e6537c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions instrumentation/grpctrace/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ func StreamClientInterceptor(tracer trace.Tracer) grpc.StreamClientInterceptor {
// for use in a grpc.NewServer call.
//
// For example:
// tracer := global.Tracer("client-tracer")
// tracer := global.Tracer("server-tracer")
// s := grpc.Dial(
// grpc.UnaryInterceptor(grpctrace.UnaryServerInterceptor(tracer)),
// ..., // (existing ServerOptions))
Expand Down Expand Up @@ -339,7 +339,7 @@ func UnaryServerInterceptor(tracer trace.Tracer) grpc.UnaryServerInterceptor {
}
}

// clientStream wraps around the embedded grpc.ServerStream, and intercepts the RecvMsg and
// serverStream wraps around the embedded grpc.ServerStream, and intercepts the RecvMsg and
// SendMsg method call.
type serverStream struct {
grpc.ServerStream
Expand Down Expand Up @@ -384,7 +384,7 @@ func wrapServerStream(ctx context.Context, ss grpc.ServerStream) *serverStream {
// for use in a grpc.NewServer call.
//
// For example:
// tracer := global.Tracer("client-tracer")
// tracer := global.Tracer("server-tracer")
// s := grpc.Dial(
// grpc.StreamInterceptor(grpctrace.StreamServerInterceptor(tracer)),
// ..., // (existing ServerOptions))
Expand Down

0 comments on commit e6537c6

Please sign in to comment.