generated from TrueCloudLab/basic
[#21] tracing: Fix typo
All checks were successful
DCO action / DCO (pull_request) Successful in 26s
Tests and linters / Tests (pull_request) Successful in 38s
Tests and linters / Tests with -race (pull_request) Successful in 55s
Tests and linters / Lint (pull_request) Successful in 1m34s
Tests and linters / Staticcheck (pull_request) Successful in 1m43s
All checks were successful
DCO action / DCO (pull_request) Successful in 26s
Tests and linters / Tests (pull_request) Successful in 38s
Tests and linters / Tests with -race (pull_request) Successful in 55s
Tests and linters / Lint (pull_request) Successful in 1m34s
Tests and linters / Staticcheck (pull_request) Successful in 1m43s
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
d34e1329c8
commit
93b681a202
2 changed files with 3 additions and 3 deletions
|
@ -82,7 +82,7 @@ func main() {
|
|||
cc, err := grpc.NewClient(":7000",
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
grpc.WithChainUnaryInterceptor(
|
||||
tracing_grpc.NewUnaryClientInteceptor(),
|
||||
tracing_grpc.NewUnaryClientInterceptor(),
|
||||
verifyClientTraceID,
|
||||
),
|
||||
grpc.WithChainStreamInterceptor(
|
||||
|
|
|
@ -15,8 +15,8 @@ import (
|
|||
"google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
// NewUnaryClientInteceptor creates new gRPC unary interceptor to save gRPC client traces.
|
||||
func NewUnaryClientInteceptor() grpc.UnaryClientInterceptor {
|
||||
// NewUnaryClientInterceptor creates new gRPC unary interceptor to save gRPC client traces.
|
||||
func NewUnaryClientInterceptor() grpc.UnaryClientInterceptor {
|
||||
return func(ctx context.Context, method string, req, reply any, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error {
|
||||
ctx, span := startClientSpan(ctx, cc, method)
|
||||
defer span.End()
|
||||
|
|
Loading…
Add table
Reference in a new issue