Versions in this module Expand all Collapse all v1 v1.0.0 May 2, 2018 Changes in this version + var ClientField = zap.String("span.kind", "client") + var DefaultDurationToField = DurationToTimeMillisField + var JsonPbMarshaller = &jsonpb.Marshaler + var ServerField = zap.String("span.kind", "server") + var SystemField = zap.String("system", "grpc") + func AddFields(ctx context.Context, fields ...zapcore.Field) + func DefaultClientCodeToLevel(code codes.Code) zapcore.Level + func DefaultCodeToLevel(code codes.Code) zapcore.Level + func DurationToDurationField(duration time.Duration) zapcore.Field + func DurationToTimeMillisField(duration time.Duration) zapcore.Field + func Extract(ctx context.Context) *zap.Logger + func PayloadStreamClientInterceptor(logger *zap.Logger, decider grpc_logging.ClientPayloadLoggingDecider) grpc.StreamClientInterceptor + func PayloadStreamServerInterceptor(logger *zap.Logger, decider grpc_logging.ServerPayloadLoggingDecider) grpc.StreamServerInterceptor + func PayloadUnaryClientInterceptor(logger *zap.Logger, decider grpc_logging.ClientPayloadLoggingDecider) grpc.UnaryClientInterceptor + func PayloadUnaryServerInterceptor(logger *zap.Logger, decider grpc_logging.ServerPayloadLoggingDecider) grpc.UnaryServerInterceptor + func ReplaceGrpcLogger(logger *zap.Logger) + func StreamClientInterceptor(logger *zap.Logger, opts ...Option) grpc.StreamClientInterceptor + func StreamServerInterceptor(logger *zap.Logger, opts ...Option) grpc.StreamServerInterceptor + func UnaryClientInterceptor(logger *zap.Logger, opts ...Option) grpc.UnaryClientInterceptor + func UnaryServerInterceptor(logger *zap.Logger, opts ...Option) grpc.UnaryServerInterceptor + type CodeToLevel func(code codes.Code) zapcore.Level + type DurationToField func(duration time.Duration) zapcore.Field + type Option func(*options) + func WithCodes(f grpc_logging.ErrorToCode) Option + func WithDecider(f grpc_logging.Decider) Option + func WithDurationField(f DurationToField) Option + func WithLevels(f CodeToLevel) Option