diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f877e07dd..a90a36ea12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,7 +122,7 @@ endif() # so that SpanGuard factory methods produce real OTel spans. # When OFF (default), all tracing code compiles to no-ops with zero overhead. # Enable via: conan install -o telemetry=True, or cmake -Dtelemetry=ON. -option(telemetry "Enable OpenTelemetry tracing" OFF) +option(telemetry "Enable OpenTelemetry tracing" ON) if(telemetry) find_package(opentelemetry-cpp CONFIG REQUIRED) add_compile_definitions(XRPL_ENABLE_TELEMETRY) diff --git a/conanfile.py b/conanfile.py index 36b50e4b4e..951ce41135 100644 --- a/conanfile.py +++ b/conanfile.py @@ -54,7 +54,7 @@ class Xrpl(ConanFile): "rocksdb": True, "shared": False, "static": True, - "telemetry": False, + "telemetry": True, "tests": False, "unity": False, "xrpld": False, diff --git a/src/libxrpl/telemetry/NullTelemetry.cpp b/src/libxrpl/telemetry/NullTelemetry.cpp index 7cbfd24019..812220acdb 100644 --- a/src/libxrpl/telemetry/NullTelemetry.cpp +++ b/src/libxrpl/telemetry/NullTelemetry.cpp @@ -10,12 +10,16 @@ its own factory that can return the real TelemetryImpl. */ +#include #include -#include +#include +#include #ifdef XRPL_ENABLE_TELEMETRY #include + +#include #endif namespace xrpl::telemetry {