Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendHeaders ¶ added in v1.2.0
AppendHeaders parses the provided GRPC headers and attaches them to the provided context.
func LogRequests ¶ added in v1.2.0
func LogRequests( ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption, ) error
LogRequests logs the gRPC backend as well as request duration when the log level is set to debug or higher.
func LogStream ¶ added in v1.2.0
func LogStream( ctx context.Context, sd *grpc.StreamDesc, conn *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption, ) (grpc.ClientStream, error)
LogStream prints the method at DEBUG level at the start of the stream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.