cmake: set WITH_JAEGER=ON by default

Signed-off-by: Omri Zeneva <ozeneva@redhat.com>
This commit is contained in:
Omri Zeneva 2022-01-20 03:58:29 -05:00
parent 4a7401b115
commit 644c99826d
2 changed files with 2 additions and 2 deletions

View File

@ -408,7 +408,7 @@ if(WITH_BLKIN)
include_directories(SYSTEM src/blkin/blkin-lib)
endif(WITH_BLKIN)
option(WITH_JAEGER "Enable jaegertracing and it's dependent libraries" OFF)
option(WITH_JAEGER "Enable jaegertracing and it's dependent libraries" ON)
if(WITH_JAEGER)
set(HAVE_JAEGER TRUE)
endif()

View File

@ -401,7 +401,7 @@ int process_request(rgw::sal::Store* const store,
}
done:
if (op) {
if (op && s->trace) {
s->trace->SetAttribute(tracing::rgw::RETURN, op->get_ret());
if (s->user) {
s->trace->SetAttribute(tracing::rgw::USER_ID, s->user->get_id().id);