Skip to content

Commit 9781acf

Browse files
authored
Generate 128-bit trace id by default (#71)
1 parent 7038b02 commit 9781acf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/datadog/tracer_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct TracerConfig {
109109
// IDs. If true, the tracer will generate 128-bit trace IDs. If false, the
110110
// tracer will generate 64-bit trace IDs. `trace_id_128_bit` is overridden by
111111
// the `DD_TRACE_128_BIT_TRACEID_GENERATION_ENABLED` environment variable.
112-
bool trace_id_128_bit = false;
112+
bool trace_id_128_bit = true;
113113

114114
// `runtime_id` denotes the current run of the application in which the tracer
115115
// is embedded. If `runtime_id` is not specified, then it defaults to a

test/test_tracer_config.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ TEST_CASE("configure 128-bit trace IDs") {
12241224
TracerConfig config;
12251225
config.defaults.service = "testsvc";
12261226

1227-
SECTION("defaults to false") { REQUIRE(config.trace_id_128_bit == false); }
1227+
SECTION("defaults to true") { REQUIRE(config.trace_id_128_bit == true); }
12281228

12291229
SECTION("value honored in finalizer") {
12301230
const auto value = GENERATE(true, false);

0 commit comments

Comments
 (0)