Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerStreamInterceptor ¶
func LoggerStreamInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
LoggerStreamInterceptor is a stream RPC server interceptor that handles cloud logging of stream RPC calls. TODO(logging): Implement structured logging with the following features:
- Log stream method, duration, and status code
- Log stream lifecycle events (start, end, error)
- Support for correlation IDs from context
- Integration with cloud logging services (CloudWatch, Stackdriver, etc.)
func LoggerUnaryInterceptor ¶
func LoggerUnaryInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
LoggerUnaryInterceptor is a unary RPC server interceptor that handles cloud logging of unary RPC calls. TODO(logging): Implement structured logging with the following features:
- Log request method, duration, and status code
- Log request/response metadata (configurable)
- Support for correlation IDs from context
- Integration with cloud logging services (CloudWatch, Stackdriver, etc.)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.