Skip to content

Commit

Permalink
grpc headers
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Jun 10, 2024
1 parent f7b0738 commit 3796c6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/grpc/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"net"
"time"

"go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc"
"google.golang.org/grpc"

"github.com/cosmos/cosmos-sdk/client"
Expand Down Expand Up @@ -33,6 +34,7 @@ func StartGRPCServer(clientCtx client.Context, app types.Application, cfg config
grpc.ForceServerCodec(codec.NewProtoCodec(clientCtx.InterfaceRegistry).GRPCCodec()),
grpc.MaxSendMsgSize(maxSendMsgSize),
grpc.MaxRecvMsgSize(maxRecvMsgSize),
grpc.StatsHandler(otelgrpc.NewServerHandler()),
)

app.RegisterGRPCServer(grpcSrv, cfg.LogQueries)
Expand Down

0 comments on commit 3796c6f

Please sign in to comment.