Documentation ¶
Index ¶
- func DefaultMaskerMethod(_ context.Context, _ string, _ bool, data interface{}) interface{}
- func InjectLogServerInHandler(l *log.Log) tap.ServerInHandle
- func TraceToLogInjector(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, ...) (interface{}, error)
- func UnaryClientCallInterceptor(opts ...Option) grpc.UnaryClientInterceptor
- func UnaryServerCallInterceptor(opts ...Option) grpc.UnaryServerInterceptor
- type Decider
- type LogDetails
- type Masker
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultMaskerMethod ¶
func InjectLogServerInHandler ¶
func InjectLogServerInHandler(l *log.Log) tap.ServerInHandle
Inject logger into gRPC context.
func TraceToLogInjector ¶
func TraceToLogInjector(ctx context.Context, req interface{}, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
Inject tracing headers from gRPC metadata to logger field.
func UnaryClientCallInterceptor ¶
func UnaryClientCallInterceptor(opts ...Option) grpc.UnaryClientInterceptor
func UnaryServerCallInterceptor ¶
func UnaryServerCallInterceptor(opts ...Option) grpc.UnaryServerInterceptor
Types ¶
type LogDetails ¶
type LogDetails int
const ( LogDetailsOff LogDetails = 0 LogDetailsShort LogDetails = 1 LogDetailsFull LogDetails = 2 )
func DefaultDeciderMethod ¶
Click to show internal directories.
Click to hide internal directories.