Skip to content

Commit

Permalink
dox fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Lindfalk committed May 17, 2022
1 parent 78e34b3 commit 14185ae
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,29 +49,29 @@ package example

import (
"google.golang.org/grpc"
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
)

type Server struct {
port int
grpcServer *grpc.Server
port int
grpcServer *grpc.Server
}

func NewServer(
port int,
patientGatewayServiceV1 *PatientGatewayServiceV1,
port int,
patientGatewayServiceV1 *PatientGatewayServiceV1,
) *Server {

grpcServer := grpc.NewServer(
grpc.UnaryInterceptor(otelgrpc.UnaryServerInterceptor()), // instrumentation
grpc.StreamInterceptor(otelgrpc.StreamServerInterceptor()), // instrumentation
)
grpcServer := grpc.NewServer(
grpc.UnaryInterceptor(otelgrpc.UnaryServerInterceptor()), // instrumentation
grpc.StreamInterceptor(otelgrpc.StreamServerInterceptor()), // instrumentation
)

patientGatewayServiceV1.Register(grpcServer)
patientGatewayServiceV1.Register(grpcServer)

return &Server{
port: port,
grpcServer: grpcServer,
}
return &Server{
port: port,
grpcServer: grpcServer,
}
}
```

0 comments on commit 14185ae

Please sign in to comment.