Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractLogr ¶
ExtractLogr extracts the logr.Logger from the context and adds the grpc tags to the logger.
func UnaryLogBMCIP ¶
func UnaryLogBMCIP() grpc.UnaryServerInterceptor
UnaryLogBMCIP returns a new unary server interceptors that adds the BMC IP to the logger.
func UnaryLogRequestID ¶
func UnaryLogRequestID(requestIDKey, requestIDLogKey string) grpc.UnaryServerInterceptor
UnaryLogRequestID returns a new unary server interceptors that adds logr.Logger with requestID to the context if a requestID doesnt exist.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(logger logr.Logger) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptors that adds logr.Logger to the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.