common/trace: add tracing specific debug log subsystem

could be turned on/off both on rgw and osd

Signed-off-by: Yuval Lifshitz <ylifshit@ibm.com>
This commit is contained in:
Yuval Lifshitz 2023-07-17 14:33:19 +00:00 committed by Deepika Upadhyay
parent b0d176b592
commit 1b23173e6f
No known key found for this signature in database
GPG Key ID: 799544B72CBFF752
3 changed files with 4 additions and 1 deletions

View File

@ -374,6 +374,8 @@ to their default level or to a level suitable for normal operations.
+--------------------------+-----------+--------------+
| ``memstore`` | 1 | 5 |
+--------------------------+-----------+--------------+
| ``trace`` | 1 | 5 |
+--------------------------+-----------+--------------+
Logging Settings

View File

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

View File

@ -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: ")