# Go gRPC Middleware

> Ready-made interceptors for gRPC Go: auth, logging, metrics, recovery and more

Source: https://talira.ai/catalog/go-grpc-middleware-08ej8c12
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [frameworks / rpc](https://talira.ai/categories/frameworks/rpc), [languages / go](https://talira.ai/categories/languages/go)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [gRPC Ecosystem](https://talira.ai/orgs/grpc-ecosystem.md)

Go gRPC Middleware is a collection of interceptors for [gRPC](https://talira.ai/catalog/grpc-gdszpcny.md) Go servers and clients that you chain together: auth, logging with adapters for slog, zap, zerolog, logrus and others, Prometheus metrics with exemplars, panic recovery, retries, timeouts, rate limiting, message validation from `.proto` options (including protovalidate) and a selector that applies interceptors only to matching methods.

## Links

- GitHub: https://github.com/grpc-ecosystem/go-grpc-middleware
- Docs: https://pkg.go.dev/github.com/grpc-ecosystem/go-grpc-middleware/v2

## Problems it solves

- add logging and metrics to a Go gRPC server
- recover from panics in gRPC handlers
- authenticate gRPC requests in Go with an interceptor

## Features

- auth interceptor
- logging with slog, zap, zerolog, logrus and go-kit adapters
- Prometheus metrics with exemplars
- panic recovery, retries, timeouts and rate limiting
- proto-based message validation
- selector to apply interceptors per method

## Trust

Overall: 0.57 out of 1.
Signals: maintenance 0.65, adoption 0.77, momentum 0.52, community 0.90, backing 0.30, extensibility 0.00.

- last commit 4 days ago
- 8 commits in the last 90 days
- latest release v2.3.4 3 months ago
- 6.8k GitHub stars
- 178 contributors
- backed by gRPC Ecosystem

## Related

- Works with [gRPC](https://talira.ai/catalog/grpc-gdszpcny.md)

## Alternatives

- [Kratos](https://talira.ai/catalog/kratos-5wy0dm66.md): Go microservices framework for the cloud-native era
- [go-zero](https://talira.ai/catalog/go-zero-18jnhjpx.md): A cloud-native Go microservices framework with a code generation CLI
- [gRPC](https://talira.ai/catalog/grpc-gdszpcny.md): A high performance, open source universal RPC framework
- [gRPC-Gateway](https://talira.ai/catalog/grpc-gateway-zz4r5a53.md): protoc plugin that generates a REST/JSON reverse proxy for your gRPC services

## Sources

[^1]: https://github.com/grpc-ecosystem/go-grpc-middleware/blob/main/LICENSE (checked 29 Nov 2026)
