Compare commits

...

2 Commits

Author SHA1 Message Date
Preston Van Loon
13233e05b5 Changelog fragment 2025-05-10 01:05:51 -05:00
Preston Van Loon
1d276fcc09 Enable gzip compression in gRPC server 2025-05-10 01:04:50 -05:00
3 changed files with 12 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ go_library(
name = "go_default_library",
srcs = [
"endpoints.go",
"grpc_compression.go",
"log.go",
"metrics.go",
"service.go",
@@ -69,6 +70,7 @@ go_library(
"@io_opentelemetry_go_contrib_instrumentation_google_golang_org_grpc_otelgrpc//:go_default_library",
"@org_golang_google_grpc//:go_default_library",
"@org_golang_google_grpc//credentials:go_default_library",
"@org_golang_google_grpc//encoding/gzip:go_default_library",
"@org_golang_google_grpc//peer:go_default_library",
"@org_golang_google_grpc//reflection:go_default_library",
],

View File

@@ -0,0 +1,7 @@
package rpc
import (
// Installing the gzip encoding registers it as an available compressor.
// gRPC will automatically negotiate and use gzip if the client supports it.
_ "google.golang.org/grpc/encoding/gzip"
)

3
changelog/pvl-gzip.md Normal file
View File

@@ -0,0 +1,3 @@
### Added
- Added support for gzip compression in gRPC server