Documentation
¶
Index ¶
- func StreamServerInterceptor(logContextProvider FieldContext, traceContextProvider TraceContext, ...) grpc.StreamServerInterceptor
- func UnaryServerInterceptor(logContextProvider FieldContext, traceContextProvider TraceContext, ...) grpc.UnaryServerInterceptor
- type FieldContext
- type Logger
- type Option
- type TraceContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor( logContextProvider FieldContext, traceContextProvider TraceContext, logger Logger, options ...Option, ) grpc.StreamServerInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor( logContextProvider FieldContext, traceContextProvider TraceContext, logger Logger, options ...Option, ) grpc.UnaryServerInterceptor
Types ¶
type FieldContext ¶
type Option ¶
type Option func(*options)
func WithCodes ¶
func WithCodes(f grpc_logging.ErrorToCode) Option
WithCodes customizes the function for mapping errors to error codes.
func WithRequestBody ¶
func WithRequestBody(f alwaysDecider) Option
WithRequestBody customizes the function for deciding if the gRPC interceptor logs the request body.
Click to show internal directories.
Click to hide internal directories.