Skip to content

Commit c7eebe4

Browse files
liukggdomgreen
authored andcommitted
Update tracing/opentracing/DOC.md (grpc-ecosystem#136)
* Update DOC.md * fix typo
1 parent 781f815 commit c7eebe4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

tracing/opentracing/DOC.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ new span.
6969
``` go
7070
func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
7171
```
72-
StreamClientInterceptor returns a new streaming server interceptor for OpenTracing.
72+
StreamClientInterceptor returns a new streaming client interceptor for OpenTracing.
7373

7474
## <a name="StreamServerInterceptor">func</a> [StreamServerInterceptor](./server_interceptors.go#L37)
7575
``` go
@@ -81,7 +81,7 @@ StreamServerInterceptor returns a new streaming server interceptor for OpenTraci
8181
``` go
8282
func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
8383
```
84-
UnaryClientInterceptor returns a new unary server interceptor for OpenTracing.
84+
UnaryClientInterceptor returns a new unary client interceptor for OpenTracing.
8585

8686
## <a name="UnaryServerInterceptor">func</a> [UnaryServerInterceptor](./server_interceptors.go#L23)
8787
``` go
@@ -115,4 +115,4 @@ func WithTracer(tracer opentracing.Tracer) Option
115115
WithTracer sets a custom tracer to be used for this middleware, otherwise the opentracing.GlobalTracer is used.
116116

117117
- - -
118-
Generated by [godoc2ghmd](https://github.com/GandalfUK/godoc2ghmd)
118+
Generated by [godoc2ghmd](https://github.com/GandalfUK/godoc2ghmd)

tracing/opentracing/client_interceptors.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"google.golang.org/grpc/metadata"
1818
)
1919

20-
// UnaryClientInterceptor returns a new unary server interceptor for OpenTracing.
20+
// UnaryClientInterceptor returns a new unary client interceptor for OpenTracing.
2121
func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor {
2222
o := evaluateOptions(opts)
2323
return func(parentCtx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
@@ -31,7 +31,7 @@ func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor {
3131
}
3232
}
3333

34-
// StreamClientInterceptor returns a new streaming server interceptor for OpenTracing.
34+
// StreamClientInterceptor returns a new streaming client interceptor for OpenTracing.
3535
func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor {
3636
o := evaluateOptions(opts)
3737
return func(parentCtx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error) {

0 commit comments

Comments
 (0)