Versions in this module Expand all Collapse all v1 v1.0.0 May 2, 2018 Changes in this version + var DefaultDurationToField = DurationToTimeMillisField + var JsonPbMarshaller = &jsonpb.Marshaler + var KindField = "span.kind" + var SystemField = "system" + func AddFields(ctx context.Context, fields logrus.Fields) + func DefaultClientCodeToLevel(code codes.Code) logrus.Level + func DefaultCodeToLevel(code codes.Code) logrus.Level + func DurationToDurationField(duration time.Duration) (key string, value interface{}) + func DurationToTimeMillisField(duration time.Duration) (key string, value interface{}) + func Extract(ctx context.Context) *logrus.Entry + func PayloadStreamClientInterceptor(entry *logrus.Entry, decider grpc_logging.ClientPayloadLoggingDecider) grpc.StreamClientInterceptor + func PayloadStreamServerInterceptor(entry *logrus.Entry, decider grpc_logging.ServerPayloadLoggingDecider) grpc.StreamServerInterceptor + func PayloadUnaryClientInterceptor(entry *logrus.Entry, decider grpc_logging.ClientPayloadLoggingDecider) grpc.UnaryClientInterceptor + func PayloadUnaryServerInterceptor(entry *logrus.Entry, decider grpc_logging.ServerPayloadLoggingDecider) grpc.UnaryServerInterceptor + func ReplaceGrpcLogger(logger *logrus.Entry) + func StreamClientInterceptor(entry *logrus.Entry, opts ...Option) grpc.StreamClientInterceptor + func StreamServerInterceptor(entry *logrus.Entry, opts ...Option) grpc.StreamServerInterceptor + func UnaryClientInterceptor(entry *logrus.Entry, opts ...Option) grpc.UnaryClientInterceptor + func UnaryServerInterceptor(entry *logrus.Entry, opts ...Option) grpc.UnaryServerInterceptor + type CodeToLevel func(code codes.Code) logrus.Level + type DurationToField func(duration time.Duration) (key string, value interface{}) + 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