Skip to content

Commit 071b25b

Browse files
committed
address zach comments
1 parent 32466a8 commit 071b25b

File tree

1 file changed

+14
-25
lines changed

1 file changed

+14
-25
lines changed

test/test_tracer.cpp

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,19 @@ TEST_TRACER("span extraction") {
755755
{__LINE__, "invalid: non hex trace tag ID",
756756
"00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-xy", // traceparent
757757
"malformed_traceflags"}, // expected_error_tag_value
758+
759+
{
760+
__LINE__,
761+
"invalid: non supported character in trace version 1/x",
762+
".0-12345678901234567890123456789012-1234567890123456-01",
763+
"invalid_version",
764+
},
765+
{
766+
__LINE__,
767+
"invalid: non supported character in trace version 2/x",
768+
"0.-12345678901234567890123456789012-1234567890123456-01",
769+
"invalid_version"
770+
},
758771
}));
759772
// clang-format on
760773

@@ -1191,31 +1204,6 @@ TEST_TRACER("span extraction") {
11911204
nullopt,
11921205
"0000000000000000", // expected_datadog_w3c_parent_id,
11931206
},
1194-
1195-
{
1196-
__LINE__,
1197-
"malformed traceparent 1/x",
1198-
".0-12345678901234567890123456789012-1234567890123456-01",
1199-
nullopt,
1200-
nullopt,
1201-
nullopt,
1202-
{},
1203-
nullopt,
1204-
nullopt,
1205-
nullopt,
1206-
},
1207-
{
1208-
__LINE__,
1209-
"malformed traceparent 1/x",
1210-
"0.-12345678901234567890123456789012-1234567890123456-01",
1211-
nullopt,
1212-
nullopt,
1213-
nullopt,
1214-
{},
1215-
nullopt,
1216-
nullopt,
1217-
nullopt,
1218-
},
12191207
}));
12201208

12211209
CAPTURE(test_case.name);
@@ -1250,6 +1238,7 @@ TEST_TRACER("span extraction") {
12501238
test_case.expected_datadog_w3c_parent_id);
12511239

12521240
REQUIRE(logger.entries.empty());
1241+
REQUIRE(span_tags.empty());
12531242
}
12541243

12551244
SECTION("W3C Phase 3 support - Preferring tracecontext") {

0 commit comments

Comments
 (0)