]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/osd/OpRequest.h
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / osd / OpRequest.h
index dc5b5e34b1f2d28cac3f653736885c4baddec828..0a03a85ac271c28e930a4d6f3c381d24b13d8f2a 100644 (file)
@@ -17,6 +17,9 @@
 #include "osd/osd_op_util.h"
 #include "osd/osd_types.h"
 #include "common/TrackedOp.h"
+#ifdef HAVE_JAEGER
+#include "common/tracer.h"
+#endif
 
 /**
  * The OpRequest takes in a Message* and takes over a single reference
@@ -88,7 +91,17 @@ public:
   epoch_t min_epoch = 0;      ///< min epoch needed to handle this msg
 
   bool hitset_inserted;
-
+#ifdef HAVE_JAEGER
+  jspan osd_parent_span = nullptr;
+  void set_osd_parent_span(jspan& span) {
+    if(osd_parent_span){
+      jaeger_tracing::finish_span(osd_parent_span);
+    }
+    osd_parent_span = move(span);
+  }
+#else
+  void set_osd_parent_span(...) {}
+#endif
   template<class T>
   const T* get_req() const { return static_cast<const T*>(request); }