chore(reposerver): Remove last occurrences of deprecated otelgrpc interceptors (#23921)

Signed-off-by: Étienne Lafarge <etienne.lafarge@gmail.com>
This commit is contained in:
Etienne Lafarge
2025-07-29 23:55:27 +02:00
committed by GitHub
parent 31e0f428e8
commit 678f61b8d3

View File

@@ -66,13 +66,11 @@ func NewServer(metricsServer *metrics.MetricsServer, cache *reposervercache.Cach
serverLog := log.NewEntry(log.StandardLogger())
streamInterceptors := []grpc.StreamServerInterceptor{
otelgrpc.StreamServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
logging.StreamServerInterceptor(grpc_util.InterceptorLogger(serverLog)),
serverMetrics.StreamServerInterceptor(),
recovery.StreamServerInterceptor(recovery.WithRecoveryHandler(grpc_util.LoggerRecoveryHandler(serverLog))),
}
unaryInterceptors := []grpc.UnaryServerInterceptor{
otelgrpc.UnaryServerInterceptor(), //nolint:staticcheck // TODO: ignore SA1019 for depreciation: see https://github.com/argoproj/argo-cd/issues/18258
logging.UnaryServerInterceptor(grpc_util.InterceptorLogger(serverLog)),
serverMetrics.UnaryServerInterceptor(),
recovery.UnaryServerInterceptor(recovery.WithRecoveryHandler(grpc_util.LoggerRecoveryHandler(serverLog))),