Skip to content

Commit e4da2f2

Browse files
committed
update with recent changes
Signed-off-by: Roman Dmytrenko <[email protected]>
1 parent b5f19f4 commit e4da2f2

File tree

8 files changed

+8
-427
lines changed

8 files changed

+8
-427
lines changed

.mockery.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,3 @@ packages:
4444
interfaces:
4545
Provider: {}
4646
Manager: {}
47-
google.golang.org/grpc/stats:
48-
interfaces:
49-
Handler: {}
50-
config:
51-
pkgname: otel
52-
dir: "./internal/otel/"

cmd/flipt/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,6 @@ func run(ctx context.Context, logger *zap.Logger, cfg *config.Config) error {
456456

457457
// in-process client connection for grpc services
458458
ipch := &inprocgrpc.Channel{}
459-
ipch = ipch.WithStatsHandler(otel.NewInprocStatsHandler())
460459

461460
var grpcOptions []cmd.GRPCServerOption
462461
if forceMigrate {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ replace (
548548
github.com/dgrijalva/jwt-go v3.2.0+incompatible => github.com/golang-jwt/jwt/v4 v4.2.0
549549
// replace with fork while changes are in review
550550
// https://github.com/fullstorydev/grpchan/pull/83
551-
github.com/fullstorydev/grpchan => github.com/erka/grpchan v0.0.0-20251014172820-9b4242e94974
551+
github.com/fullstorydev/grpchan => github.com/erka/grpchan v0.0.0-20251017173942-dbe3de95ae29
552552
)
553553

554554
replace (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,8 +413,8 @@ github.com/envoyproxy/protoc-gen-validate v1.2.1 h1:DEo3O99U8j4hBFwbJfrz9VtgcDfU
413413
github.com/envoyproxy/protoc-gen-validate v1.2.1/go.mod h1:d/C80l/jxXLdfEIhX1W2TmLfsJ31lvEjwamM4DxlWXU=
414414
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f h1:Y/CXytFA4m6baUTXGLOoWe4PQhGxaX0KpnayAqC48p4=
415415
github.com/erikgeiser/coninput v0.0.0-20211004153227-1c3628e74d0f/go.mod h1:vw97MGsxSvLiUE2X8qFplwetxpGLQrlU1Q9AUEIzCaM=
416-
github.com/erka/grpchan v0.0.0-20251014172820-9b4242e94974 h1:wSej1/pZPNE+PvnC3HAmoVsok7eHxYDRSaqGnEZhejs=
417-
github.com/erka/grpchan v0.0.0-20251014172820-9b4242e94974/go.mod h1:GrXuhvxw+EM9Z1c7pHQY7SOWn8cv1+SamuCsdNH0j9A=
416+
github.com/erka/grpchan v0.0.0-20251017173942-dbe3de95ae29 h1:CiPErPD3JCJDs1rVj307bWDnZoraUG8LbgnUMj5uM6s=
417+
github.com/erka/grpchan v0.0.0-20251017173942-dbe3de95ae29/go.mod h1:GrXuhvxw+EM9Z1c7pHQY7SOWn8cv1+SamuCsdNH0j9A=
418418
github.com/ettle/strcase v0.2.0 h1:fGNiVF21fHXpX1niBgk0aROov1LagYsOwV/xqKDKR/Q=
419419
github.com/ettle/strcase v0.2.0/go.mod h1:DajmHElDSaX76ITe3/VHVyMin4LWSJN5Z909Wp+ED1A=
420420
github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=

internal/cmd/grpc.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"runtime/debug"
88
"sync"
99

10+
"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
1011
otlpruntime "go.opentelemetry.io/contrib/instrumentation/runtime"
1112

1213
"go.opentelemetry.io/contrib/propagators/autoprop"
@@ -114,6 +115,10 @@ func NewGRPCServer(
114115
opt(options)
115116
}
116117

118+
if cfg.Tracing.Enabled {
119+
ipch = ipch.WithServerStatsHandler(otelgrpc.NewServerHandler())
120+
}
121+
117122
logger = logger.With(zap.String("server", "grpc"))
118123
server := &GRPCServer{
119124
logger: logger,

internal/otel/stats.go

Lines changed: 0 additions & 28 deletions
This file was deleted.

internal/otel/stats_mock.go

Lines changed: 0 additions & 205 deletions
This file was deleted.

0 commit comments

Comments
 (0)