From: Yuval Lifshitz Date: Mon, 17 Jul 2023 14:33:19 +0000 (+0000) Subject: common/trace: add tracing specific debug log subsystem X-Git-Tag: v19.0.0~551^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1b23173e6ffba02861c29e4f807f30365edf1b00;p=ceph.git common/trace: add tracing specific debug log subsystem could be turned on/off both on rgw and osd Signed-off-by: Yuval Lifshitz --- diff --git a/doc/rados/troubleshooting/log-and-debug.rst b/doc/rados/troubleshooting/log-and-debug.rst index 475de486ed6..4e2a7283ae7 100644 --- a/doc/rados/troubleshooting/log-and-debug.rst +++ b/doc/rados/troubleshooting/log-and-debug.rst @@ -374,6 +374,8 @@ to their default level or to a level suitable for normal operations. +--------------------------+-----------+--------------+ | ``memstore`` | 1 | 5 | +--------------------------+-----------+--------------+ +| ``trace`` | 1 | 5 | ++--------------------------+-----------+--------------+ Logging Settings diff --git a/src/common/subsys.h b/src/common/subsys.h index d7350586ae1..e798f987aa0 100644 --- a/src/common/subsys.h +++ b/src/common/subsys.h @@ -102,6 +102,7 @@ SUBSYS(mclock, 1, 5) SUBSYS(cyanstore, 0, 5) SUBSYS(ceph_exporter, 1, 5) SUBSYS(memstore, 1, 5) +SUBSYS(trace, 1, 5) // ********************************************************************* // Developers should update /doc/rados/troubleshooting/log-and-debug.rst // when adding or removing a subsystem accordingly. diff --git a/src/common/tracer.cc b/src/common/tracer.cc index aab3c1e9308..d822e274b43 100644 --- a/src/common/tracer.cc +++ b/src/common/tracer.cc @@ -10,7 +10,7 @@ #include "opentelemetry/sdk/trace/tracer_provider.h" #include "opentelemetry/exporters/jaeger/jaeger_exporter.h" -#define dout_subsys ceph_subsys_osd +#define dout_subsys ceph_subsys_trace #undef dout_prefix #define dout_prefix (*_dout << "otel_tracing: ")