From 797f4aacf796486e94ae975b1c8a6b9746575461 Mon Sep 17 00:00:00 2001 From: chankyin Date: Fri, 10 Jan 2025 10:09:47 +0800 Subject: [PATCH] fix(frontend): handle grpc register error --- pkg/frontend/plugin.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/frontend/plugin.go b/pkg/frontend/plugin.go index f2dab32..d6cd0c4 100644 --- a/pkg/frontend/plugin.go +++ b/pkg/frontend/plugin.go @@ -85,7 +85,9 @@ func (plugin *Plugin) Start(ctx context.Context) error { grpcServer := grpc.NewServer() - handler.Register(grpcServer, health.NewServer()) + if err := handler.Register(grpcServer, health.NewServer()); err != nil { + return fmt.Errorf("register jaeger storage plugin on grpc server: %w", err) + } listener, err := net.Listen("tcp", plugin.options.address) if err != nil {