Documentation ¶
Index ¶
- func NewConnected(srvName string, confName string) (client *tair.TairClusterClient, err error)
- type RedisConf
- type TracingHook
- func (hook *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (hook *TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (hook *TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (hook *TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
- func (hook *TracingHook) StartSpanFromContext(ctx context.Context, cmd redis.Cmder, cmdList []redis.Cmder) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConnected ¶
func NewConnected(srvName string, confName string) (client *tair.TairClusterClient, err error)
NewConnected redis cluster client
Types ¶
type TracingHook ¶
type TracingHook struct {
// contains filtered or unexported fields
}
func NewTracingHook ¶
func NewTracingHook(opt redisOpt, redisLog *loggers.Logger, redisSlowLog *loggers.Logger) *TracingHook
func (*TracingHook) AfterProcess ¶
func (hook *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
AfterProcess 执行后
func (*TracingHook) AfterProcessPipeline ¶
func (hook *TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
AfterProcessPipeline 后处理管道
func (*TracingHook) BeforeProcess ¶
func (hook *TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
BeforeProcess 执行前
func (*TracingHook) BeforeProcessPipeline ¶
func (hook *TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
BeforeProcessPipeline 流水线前
func (*TracingHook) StartSpanFromContext ¶
func (hook *TracingHook) StartSpanFromContext(ctx context.Context, cmd redis.Cmder, cmdList []redis.Cmder) context.Context
Click to show internal directories.
Click to hide internal directories.