roadrunner icon indicating copy to clipboard operation
roadrunner copied to clipboard

[💡 FEATURE REQUEST]: gRPC plugin custom interceptors

Open rustatian opened this issue 3 years ago • 3 comments

Plugin

GRPC

I have an idea!

Like we have middleware in the HTTP plugin, will be nice to have the custom interceptors for the grpc plugin.

# GRPC service configuration
grpc:
  # socket to listen
  listen: "tcp://127.0.0.1:9005"
  interceptors: ["prometheus", "logger" ] <---------

  # proto root file
  proto: "proto/service/service.proto"
  max_send_msg_size: 50
  max_recv_msg_size: 50
  max_connection_idle: 0s
  max_connection_age: 0s
  max_connection_age_grace: 0s
  max_concurrent_streams: 10
  ping_time: 1s
  timeout: 200s

The plugin should support the interceptors from the grpc-go-ecosystem as well.

rustatian avatar Jan 27 '22 08:01 rustatian