Xuanwo commented on code in PR #1931:
URL: 
https://github.com/apache/incubator-opendal/pull/1931#discussion_r1164930481


##########
core/src/layers/minitrace.rs:
##########
@@ -150,19 +150,33 @@ impl<A: Accessor> LayeredAccessor for 
MinitraceAccessor<A> {
     }
 
     async fn read(&self, path: &str, args: OpRead) -> Result<(RpRead, 
Self::Reader)> {
-        let span = Span::enter_with_local_parent("read");
         self.inner
             .read(path, args)
-            .map(|v| v.map(|(rp, r)| (rp, MinitraceWrapper::new(span, r))))
+            .map(|v| {
+                v.map(|(rp, r)| {
+                    (
+                        rp,
+                        
MinitraceWrapper::new(Span::enter_with_local_parent("ReadOperation"), r),

Review Comment:
   Oh, my mistake.
   
   Please use 
[`ReadOperation`](https://opendal.apache.org/docs/rust/opendal/raw/oio/enum.ReadOperation.html)
 which provides display. For example, `ReadOperation::Read.into_static()`.



-- 
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