fix some TODOs
This commit is contained in:
committed by
Jörn Friedrich Dreyer
parent
ae565846c2
commit
41403d7952
@@ -5,12 +5,13 @@ import (
|
||||
proxytracing "github.com/owncloud/ocis/proxy/pkg/tracing"
|
||||
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/grpc/credentials/insecure"
|
||||
)
|
||||
|
||||
func newConn(endpoint string) (*grpc.ClientConn, error) {
|
||||
conn, err := grpc.Dial(
|
||||
endpoint,
|
||||
grpc.WithInsecure(), //TODO: depreciated
|
||||
grpc.WithTransportCredentials(insecure.NewCredentials()),
|
||||
grpc.WithUnaryInterceptor(
|
||||
otelgrpc.UnaryClientInterceptor(
|
||||
otelgrpc.WithTracerProvider(
|
||||
|
||||
Reference in New Issue
Block a user