@@ -128,13 +128,15 @@ impl RedisPool {
128128 Ok ( ( ) )
129129 }
130130
131+ #[ tracing:: instrument( skip( self ) ) ]
131132 pub async fn connect ( & self ) -> Result < RedisConnection , DatabaseError > {
132133 Ok ( RedisConnection {
133134 connection : self . pool . get ( ) . await ?,
134135 meta_namespace : self . meta_namespace . clone ( ) ,
135136 } )
136137 }
137138
139+ #[ tracing:: instrument( skip( self , closure) ) ]
138140 pub async fn get_cached_keys < F , Fut , T , K > (
139141 & self ,
140142 namespace : & str ,
@@ -162,6 +164,7 @@ impl RedisPool {
162164 . collect ( ) )
163165 }
164166
167+ #[ tracing:: instrument( skip( self , closure) ) ]
165168 pub async fn get_cached_keys_raw < F , Fut , T , K > (
166169 & self ,
167170 namespace : & str ,
@@ -197,6 +200,7 @@ impl RedisPool {
197200 . await
198201 }
199202
203+ #[ tracing:: instrument( skip( self , closure) ) ]
200204 pub async fn get_cached_keys_with_slug < F , Fut , T , I , K , S > (
201205 & self ,
202206 namespace : & str ,
@@ -233,6 +237,7 @@ impl RedisPool {
233237 . collect ( ) )
234238 }
235239
240+ #[ tracing:: instrument( skip( self , closure) ) ]
236241 pub async fn get_cached_keys_raw_with_slug < F , Fut , T , I , K , S > (
237242 & self ,
238243 namespace : & str ,
@@ -585,6 +590,7 @@ impl RedisPool {
585590}
586591
587592impl RedisConnection {
593+ #[ tracing:: instrument( skip( self ) ) ]
588594 pub async fn set (
589595 & mut self ,
590596 namespace : & str ,
@@ -607,6 +613,7 @@ impl RedisConnection {
607613 Ok ( ( ) )
608614 }
609615
616+ #[ tracing:: instrument( skip( self , id, data) ) ]
610617 pub async fn set_serialized_to_json < Id , D > (
611618 & mut self ,
612619 namespace : & str ,
@@ -627,6 +634,7 @@ impl RedisConnection {
627634 . await
628635 }
629636
637+ #[ tracing:: instrument( skip( self ) ) ]
630638 pub async fn get (
631639 & mut self ,
632640 namespace : & str ,
@@ -642,6 +650,7 @@ impl RedisConnection {
642650 Ok ( res)
643651 }
644652
653+ #[ tracing:: instrument( skip( self ) ) ]
645654 pub async fn get_many (
646655 & mut self ,
647656 namespace : & str ,
@@ -659,6 +668,7 @@ impl RedisConnection {
659668 Ok ( res)
660669 }
661670
671+ #[ tracing:: instrument( skip( self ) ) ]
662672 pub async fn get_deserialized_from_json < R > (
663673 & mut self ,
664674 namespace : & str ,
@@ -673,6 +683,7 @@ impl RedisConnection {
673683 . and_then ( |x| serde_json:: from_str ( & x) . ok ( ) ) )
674684 }
675685
686+ #[ tracing:: instrument( skip( self ) ) ]
676687 pub async fn get_many_deserialized_from_json < R > (
677688 & mut self ,
678689 namespace : & str ,
@@ -689,6 +700,7 @@ impl RedisConnection {
689700 . collect :: < Vec < _ > > ( ) )
690701 }
691702
703+ #[ tracing:: instrument( skip( self , id) ) ]
692704 pub async fn delete < T1 > (
693705 & mut self ,
694706 namespace : & str ,
@@ -707,6 +719,7 @@ impl RedisConnection {
707719 Ok ( ( ) )
708720 }
709721
722+ #[ tracing:: instrument( skip( self , iter) ) ]
710723 pub async fn delete_many (
711724 & mut self ,
712725 iter : impl IntoIterator < Item = ( & str , Option < String > ) > ,
@@ -731,6 +744,7 @@ impl RedisConnection {
731744 Ok ( ( ) )
732745 }
733746
747+ #[ tracing:: instrument( skip( self , value) ) ]
734748 pub async fn lpush (
735749 & mut self ,
736750 namespace : & str ,
@@ -742,6 +756,7 @@ impl RedisConnection {
742756 Ok ( ( ) )
743757 }
744758
759+ #[ tracing:: instrument( skip( self ) ) ]
745760 pub async fn brpop (
746761 & mut self ,
747762 namespace : & str ,
0 commit comments