Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHook ¶
func NewHook(opts ...ApplyOption) redis.Hook
NewHook returns a redis.Hook that reports cmds as spans. for default, hook will use global tracer for tracing.
Types ¶
type ApplyOption ¶ added in v0.2.0
type ApplyOption func(h *hook)
func WithTracer ¶ added in v0.2.0
func WithTracer(tracer opentracing.Tracer) ApplyOption
Click to show internal directories.
Click to hide internal directories.