Skip to content

Conversation

@chvck
Copy link
Collaborator

@chvck chvck commented Jan 7, 2026

Motivation

We use go-grpc-middleware for setting the grpc level logger. We can achieve the same via grpclog itself directly. Whilst go-grpc-middleware can be used for request level logging we do not require that.

Changes

Remove go-grpc-middleware dependency.

@chvck chvck requested a review from Copilot January 7, 2026 13:37
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the go-grpc-middleware dependency by replacing it with direct usage of grpclog for setting the gRPC logger. The change simplifies the codebase by using gRPC's built-in logging functionality instead of an external middleware library.

Key Changes:

  • Replaced grpc_logsettable.ReplaceGrpcLoggerV2().Set() with grpclog.SetLoggerV2()
  • Removed go-grpc-middleware dependency from go.mod
  • Updated OpenTelemetry and goprotostellar dependencies to newer versions

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
routingclient.go Replaced middleware-based logger setup with direct grpclog usage and reorganized imports
go.mod Removed go-grpc-middleware dependency and updated OpenTelemetry/goprotostellar versions
routingconn.go Reorganized import statements for consistency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chvck chvck force-pushed the gocbc-1780_update_deps branch 2 times, most recently from c0a1264 to c0958ca Compare January 7, 2026 13:42
Motivation
----------
We use go-grpc-middleware for setting the grpc level logger.
We can achieve the same via grpclog itself directly.
Whilst go-grpc-middleware can be used for request level logging
we do not require that.

Changes
-------
Remove go-grpc-middleware dependency.
@chvck chvck force-pushed the gocbc-1780_update_deps branch from c0958ca to e248773 Compare January 7, 2026 13:43
@chvck chvck merged commit 1c3a03f into master Jan 7, 2026
5 checks passed
@chvck chvck deleted the gocbc-1780_update_deps branch January 7, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants