@@ -245,6 +245,7 @@ impl ReadBackend for RestBackend {
245245 /// A vector of tuples containing the id and size of the files.
246246 ///
247247 /// [`RestErrorKind::JoiningUrlFailed`]: RestErrorKind::JoiningUrlFailed
248+ #[ tracing:: instrument( skip( self ) ) ]
248249 fn list_with_size ( & self , tpe : FileType ) -> Result < Vec < ( Id , u32 ) > > {
249250 // format which is delivered by the REST-service
250251 #[ derive( Deserialize ) ]
@@ -313,6 +314,7 @@ impl ReadBackend for RestBackend {
313314 /// * [`RestErrorKind::BackoffError`] - If the backoff failed.
314315 ///
315316 /// [`RestErrorKind::BackoffError`]: RestErrorKind::BackoffError
317+ #[ tracing:: instrument( skip( self ) ) ]
316318 fn read_full ( & self , tpe : FileType , id : & Id ) -> Result < Bytes > {
317319 trace ! ( "reading tpe: {tpe:?}, id: {id}" ) ;
318320 let url = self . url ( tpe, id) ?;
@@ -346,6 +348,7 @@ impl ReadBackend for RestBackend {
346348 /// * [`RestErrorKind::BackoffError`] - If the backoff failed.
347349 ///
348350 /// [`RestErrorKind::BackoffError`]: RestErrorKind::BackoffError
351+ #[ tracing:: instrument( skip( self , _cacheable) ) ]
349352 fn read_partial (
350353 & self ,
351354 tpe : FileType ,
@@ -383,6 +386,7 @@ impl WriteBackend for RestBackend {
383386 /// * [`RestErrorKind::BackoffError`] - If the backoff failed.
384387 ///
385388 /// [`RestErrorKind::BackoffError`]: RestErrorKind::BackoffError
389+ #[ tracing:: instrument( skip( self ) ) ]
386390 fn create ( & self ) -> Result < ( ) > {
387391 let url = self
388392 . url
@@ -413,6 +417,7 @@ impl WriteBackend for RestBackend {
413417 /// * [`RestErrorKind::BackoffError`] - If the backoff failed.
414418 ///
415419 /// [`RestErrorKind::BackoffError`]: RestErrorKind::BackoffError
420+ #[ tracing:: instrument( skip( self , _cacheable) ) ]
416421 fn write_bytes ( & self , tpe : FileType , id : & Id , _cacheable : bool , buf : Bytes ) -> Result < ( ) > {
417422 trace ! ( "writing tpe: {:?}, id: {}" , & tpe, & id) ;
418423 let req_builder = self . client . post ( self . url ( tpe, id) ?) . body ( buf) ;
@@ -441,6 +446,7 @@ impl WriteBackend for RestBackend {
441446 /// * [`RestErrorKind::BackoffError`] - If the backoff failed.
442447 ///
443448 /// [`RestErrorKind::BackoffError`]: RestErrorKind::BackoffError
449+ #[ tracing:: instrument( skip( self , _cacheable) ) ]
444450 fn remove ( & self , tpe : FileType , id : & Id , _cacheable : bool ) -> Result < ( ) > {
445451 trace ! ( "removing tpe: {:?}, id: {}" , & tpe, & id) ;
446452 let url = self . url ( tpe, id) ?;
0 commit comments