func NewHook(opts ...ApplyOption) redis.Hook {
	h := &hook{
		tracer: opentracing.GlobalTracer(),
	}
	for _, apply := range opts {
		apply(h)
	}
	return h
}
// NewHook returns a redis.Hook that reports cmds as spans.
// for default, hook will use global tracer for tracing.
NewHook returns a redis.Hook that reports cmds as spans.
for default, hook will use global tracer for tracing.
// NewHook returns a redis . Hook that reports cmds as spans . // for default hook will use global tracer for tracing .
func NewHook(opts ...ApplyOption) redis.Hook {
	h := &hook{
		tracer: opentracing.GlobalTracer(),
	}
	for _, apply := range opts {
		apply(h)
	}
	return h
}
func NewHook ( opts ... ApplyOption ) redis . Hook { h := & hook { tracer : opentracing . GlobalTracer ( ) , } for _ , apply := range opts { apply ( h ) } return h }
NewHook returns a redis.Hook that reports cmds as spans.
NewHook returns a redis . Hook that reports cmds as spans .