]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Revert "common/tracer: fix decoding when jaeger tracing is disabled" 51331/head
authorMatan Breizman <mbreizma@redhat.com>
Wed, 3 May 2023 08:04:11 +0000 (08:04 +0000)
committerMatan Breizman <mbreizma@redhat.com>
Wed, 3 May 2023 08:04:11 +0000 (08:04 +0000)
This reverts commit 3701ffa6733b001d4278a0b68395c5efe2382f25.

Signed-off-by: Matan Breizman <mbreizma@redhat.com>
src/common/tracer.h

index 4cb1f0f5b5433adabc096473b2f0159891be4066..9d13c78aafcee3800ed635677ee83c332dbb87ba 100644 (file)
@@ -100,21 +100,8 @@ struct Tracer {
   jspan add_span(std::string_view span_name, const jspan_context& parent_ctx) { return {}; }
   void init(std::string_view service_name) {}
 };
-
-inline void encode(const jspan_context& span_ctx, bufferlist& bl, uint64_t f = 0) {
-  ENCODE_START(1, 1, bl);
-  // jaeger is missing, set "is_valid" to false.
-  bool is_valid = false;
-  encode(is_valid, bl);
-  ENCODE_FINISH(bl);
-}
-
-inline void decode(jspan_context& span_ctx, bufferlist::const_iterator& bl) {
-  DECODE_START(254, bl);
-  // jaeger is missing, consume the buffer but do not decode it.
-  DECODE_FINISH(bl);
+  inline void encode(const jspan_context& span, bufferlist& bl, uint64_t f=0) {}
+  inline void decode(jspan_context& span_ctx, ceph::buffer::list::const_iterator& bl) {}
 }
 
-} // namespace tracing
-
 #endif // !HAVE_JAEGER