From 359151a78325eb8cad04d0f0e461fe5c9b38db7e Mon Sep 17 00:00:00 2001 From: Damien Mehala Date: Wed, 15 Nov 2023 10:17:56 +0100 Subject: [PATCH] Use 128-bit trace id by default --- src/datadog/tracer_config.h | 2 +- test/test_tracer_config.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/datadog/tracer_config.h b/src/datadog/tracer_config.h index 5ef23270..dfe1a645 100644 --- a/src/datadog/tracer_config.h +++ b/src/datadog/tracer_config.h @@ -108,7 +108,7 @@ struct TracerConfig { // IDs. If true, the tracer will generate 128-bit trace IDs. If false, the // tracer will generate 64-bit trace IDs. `trace_id_128_bit` is overridden by // the `DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED` environment variable. - bool trace_id_128_bit = false; + bool trace_id_128_bit = true; // `runtime_id` denotes the current run of the application in which the tracer // is embedded. If `runtime_id` is not specified, then it defaults to a diff --git a/test/test_tracer_config.cpp b/test/test_tracer_config.cpp index 5ea1f995..382f9c2e 100644 --- a/test/test_tracer_config.cpp +++ b/test/test_tracer_config.cpp @@ -1224,7 +1224,7 @@ TEST_CASE("configure 128-bit trace IDs") { TracerConfig config; config.defaults.service = "testsvc"; - SECTION("defaults to false") { REQUIRE(config.trace_id_128_bit == false); } + SECTION("defaults to true") { REQUIRE(config.trace_id_128_bit == true); } SECTION("value honored in finalizer") { const auto value = GENERATE(true, false);