Documentation ¶
Index ¶
- type Option
- type TracingHook
- func (th *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
- func (th *TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
- func (th *TracingHook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error)
- func (th *TracingHook) BeforeProcessPipeline(ctx context.Context, cmds []redis.Cmder) (context.Context, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TracingHook ¶
type TracingHook struct {
// contains filtered or unexported fields
}
func NewTracingHook ¶
func NewTracingHook(tracer aitracer.Tracer, addr string, opts ...Option) *TracingHook
NewTracingHook return a redis monitor hook.
func (*TracingHook) AfterProcess ¶
func (th *TracingHook) AfterProcess(ctx context.Context, cmd redis.Cmder) error
func (*TracingHook) AfterProcessPipeline ¶
func (th *TracingHook) AfterProcessPipeline(ctx context.Context, cmds []redis.Cmder) error
func (*TracingHook) BeforeProcess ¶
func (*TracingHook) BeforeProcessPipeline ¶
Click to show internal directories.
Click to hide internal directories.