Skip to content

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed
 

‎cmpserver/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ func NewServer(initConstants plugin.CMPServerInitConstants) (*ArgoCDCMPServer, e
4646

4747
serverLog := log.NewEntry(log.StandardLogger())
4848
streamInterceptors := []grpc.StreamServerInterceptor{
49-
otelgrpc.StreamServerInterceptor(),
49+
otelgrpc.StreamServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
5050
grpc_logrus.StreamServerInterceptor(serverLog),
5151
grpc_prometheus.StreamServerInterceptor,
5252
grpc_util.PanicLoggerStreamServerInterceptor(serverLog),
5353
}
5454
unaryInterceptors := []grpc.UnaryServerInterceptor{
55-
otelgrpc.UnaryServerInterceptor(),
55+
otelgrpc.UnaryServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
5656
grpc_logrus.UnaryServerInterceptor(serverLog),
5757
grpc_prometheus.UnaryServerInterceptor,
5858
grpc_util.PanicLoggerUnaryServerInterceptor(serverLog),

‎go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ require (
7878
github.com/valyala/fasttemplate v1.2.2
7979
github.com/xanzy/go-gitlab v0.91.1
8080
github.com/yuin/gopher-lua v1.1.0
81-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0
81+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1
8282
go.opentelemetry.io/otel v1.21.0
8383
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.21.0
8484
go.opentelemetry.io/otel/sdk v1.21.0

‎go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -1746,8 +1746,8 @@ go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk=
17461746
go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E=
17471747
go.opencensus.io v0.24.0 h1:y73uSU6J157QMP2kn2r30vwW1A2W2WFwSCGnAVxeaD0=
17481748
go.opencensus.io v0.24.0/go.mod h1:vNK8G9p7aAivkbmorf4v+7Hgx+Zs0yY+0fOtgBfjQKo=
1749-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0 h1:ZOLJc06r4CB42laIXg/7udr0pbZyuAihN10A/XuiQRY=
1750-
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.42.0/go.mod h1:5z+/ZWJQKXa9YT34fQNx5K8Hd1EoIhvtUygUQPqEOgQ=
1749+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1 h1:SpGay3w+nEwMpfVnbqOLH5gY52/foP8RE8UzTZ1pdSE=
1750+
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1/go.mod h1:4UoMYEZOC0yN/sPGH76KPkkU7zgiEWYWL9vwmbnTJPE=
17511751
go.opentelemetry.io/otel v1.21.0 h1:hzLeKBZEL7Okw2mGzZ0cc4k/A7Fta0uoPgaJCr8fsFc=
17521752
go.opentelemetry.io/otel v1.21.0/go.mod h1:QZzNPQPm1zLX4gZK4cMi+71eaorMSGT3A4znnUvNNEo=
17531753
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.21.0 h1:cl5P5/GIfFh4t6xyruOgJP5QiA1pw4fYYdv6nc6CBWw=

‎reposerver/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ func NewServer(metricsServer *metrics.MetricsServer, cache *reposervercache.Cach
7070

7171
serverLog := log.NewEntry(log.StandardLogger())
7272
streamInterceptors := []grpc.StreamServerInterceptor{
73-
otelgrpc.StreamServerInterceptor(),
73+
otelgrpc.StreamServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
7474
grpc_logrus.StreamServerInterceptor(serverLog),
7575
grpc_prometheus.StreamServerInterceptor,
7676
grpc_util.PanicLoggerStreamServerInterceptor(serverLog),
7777
}
7878
unaryInterceptors := []grpc.UnaryServerInterceptor{
79-
otelgrpc.UnaryServerInterceptor(),
79+
otelgrpc.UnaryServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
8080
grpc_logrus.UnaryServerInterceptor(serverLog),
8181
grpc_prometheus.UnaryServerInterceptor,
8282
grpc_util.PanicLoggerUnaryServerInterceptor(serverLog),

‎server/server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ func (a *ArgoCDServer) newGRPCServer() (*grpc.Server, application.AppResourceTre
771771
// NOTE: notice we do not configure the gRPC server here with TLS (e.g. grpc.Creds(creds))
772772
// This is because TLS handshaking occurs in cmux handling
773773
sOpts = append(sOpts, grpc.StreamInterceptor(grpc_middleware.ChainStreamServer(
774-
otelgrpc.StreamServerInterceptor(),
774+
otelgrpc.StreamServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
775775
grpc_logrus.StreamServerInterceptor(a.log),
776776
grpc_prometheus.StreamServerInterceptor,
777777
grpc_auth.StreamServerInterceptor(a.Authenticate),
@@ -785,7 +785,7 @@ func (a *ArgoCDServer) newGRPCServer() (*grpc.Server, application.AppResourceTre
785785
)))
786786
sOpts = append(sOpts, grpc.UnaryInterceptor(grpc_middleware.ChainUnaryServer(
787787
bug21955WorkaroundInterceptor,
788-
otelgrpc.UnaryServerInterceptor(),
788+
otelgrpc.UnaryServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
789789
grpc_logrus.UnaryServerInterceptor(a.log),
790790
grpc_prometheus.UnaryServerInterceptor,
791791
grpc_auth.UnaryServerInterceptor(a.Authenticate),

‎util/grpc/trace.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ var (
1717
// see https://github.com/open-telemetry/opentelemetry-go-contrib/issues/4226 for details
1818
func ensureInitialized() {
1919
interceptorsInitialized.Do(func() {
20-
otelUnaryInterceptor = otelgrpc.UnaryClientInterceptor()
21-
otelStreamInterceptor = otelgrpc.StreamClientInterceptor()
20+
otelUnaryInterceptor = otelgrpc.UnaryClientInterceptor() //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
21+
otelStreamInterceptor = otelgrpc.StreamClientInterceptor() //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
2222
})
2323
}
2424

0 commit comments

Comments
 (0)
Please sign in to comment.