Documentation
¶
Index ¶
Constants ¶
View Source
const (
// GRPCResponseLatencyKey is the amount of time needed to produce a response to a request.
GRPCResponseLatencyKey = "rpc.grpc.response_latency"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorHandlingStreamServerInterceptor ¶
func ErrorHandlingStreamServerInterceptor() grpc.StreamServerInterceptor
ErrorHandlingStreamServerInterceptor returns a new stream interceptor suitable for request error handling.
func ErrorHandlingUnaryServerInterceptor ¶
func ErrorHandlingUnaryServerInterceptor() grpc.UnaryServerInterceptor
ErrorHandlingUnaryServerInterceptor returns a new unary interceptor suitable for request error handling.
func LoggingStreamServerInterceptor ¶
func LoggingStreamServerInterceptor() grpc.StreamServerInterceptor
LoggingStreamServerInterceptor returns a new stream interceptor suitable for request logging.
func LoggingUnaryServerInterceptor ¶
func LoggingUnaryServerInterceptor() grpc.UnaryServerInterceptor
LoggingUnaryServerInterceptor returns a new unary interceptor suitable for request logging.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.