func (r *hook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error) {
	span, ctx := opentracing.StartSpanFromContextWithTracer(ctx, r.tracer, getCmdName(cmd))
	ext.Component.Set(span, "redis")
	ext.DBType.Set(span, "redis")
	ext.SpanKind.Set(span, "client")
	ext.DBStatement.Set(span, fmt.Sprintf("%v", cmd.Args()))
	return ctx, nil
}
// BeforeProcess initiates the span for the redis cmd
BeforeProcess initiates the span for the redis cmd
// BeforeProcess initiates the span for the redis cmd
func (r *hook) BeforeProcess(ctx context.Context, cmd redis.Cmder) (context.Context, error) {
	span, ctx := opentracing.StartSpanFromContextWithTracer(ctx, r.tracer, getCmdName(cmd))
	ext.Component.Set(span, "redis")
	ext.DBType.Set(span, "redis")
	ext.SpanKind.Set(span, "client")
	ext.DBStatement.Set(span, fmt.Sprintf("%v", cmd.Args()))
	return ctx, nil
}
func ( r * hook ) BeforeProcess ( ctx context . Context , cmd redis . Cmder ) ( context . Context , error ) { span , ctx := opentracing . StartSpanFromContextWithTracer ( ctx , r . tracer , getCmdName ( cmd ) ) ext . Component . Set ( span , " " ) ext . DBType . Set ( span , " " ) ext . SpanKind . Set ( span , " " ) ext . DBStatement . Set ( span , fmt . Sprintf ( " " , cmd . Args ( ) ) ) return ctx , nil }
BeforeProcess initiates the span for the redis cmd
BeforeProcess initiates the span for the redis cmd