WenyXu commented on issue #3737:
URL: 
https://github.com/apache/incubator-opendal/issues/3737#issuecomment-1849491021

   > Both metrics and logging operate at the opendal accessor level. There is 
no guarantee that each operation corresponds to a single request.
   
   Yes, It's a little confusing... The incorrect metric is meaningless to us. 
And it might mislead users🥲.
   
   > In this case, metrics and logging happen inside `Read::read` and 
`Read::seek`.
   
   Yes, As mentioned in #3738, the following code works for me:
   ```rust
       let backend = fs_builder::build();
       let operator = OperatorBuilder::new(metrics.layer(backend)).build();
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to