File tree Expand file tree Collapse file tree 3 files changed +4
-12
lines changed
Expand file tree Collapse file tree 3 files changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -499,9 +499,7 @@ TEST_SPAN("injection") {
499499 REQUIRE (writer.items .empty () == false );
500500
501501 // Consume the span that MUST be kept for service liveness.
502- {
503- apm_disabled_tracer.create_span ();
504- }
502+ { apm_disabled_tracer.create_span (); }
505503
506504 auto span = apm_disabled_tracer.create_span ();
507505
Original file line number Diff line number Diff line change @@ -236,9 +236,7 @@ TEST_CASE("TraceSegment finalization of spans") {
236236 {" x-datadog-sampling-priority" , std::to_string (sampling_priority)},
237237 };
238238 MockDictReader reader{headers};
239- {
240- auto span = tracer.extract_span (reader);
241- }
239+ { auto span = tracer.extract_span (reader); }
242240 REQUIRE (collector->span_count () == 1 );
243241 REQUIRE (collector->first_span ().numeric_tags .at (
244242 tags::internal::sampling_priority) == sampling_priority);
Original file line number Diff line number Diff line change @@ -1846,9 +1846,7 @@ TEST_TRACER("APM tracing disabled") {
18461846 auto finalized_config = finalize_config (config, clock);
18471847 REQUIRE (finalized_config);
18481848 Tracer tracer{*finalized_config};
1849- {
1850- auto root1 = tracer.create_span ();
1851- }
1849+ { auto root1 = tracer.create_span (); }
18521850 REQUIRE (collector->chunks .size () == 1 );
18531851 REQUIRE (collector->chunks .front ().size () == 1 );
18541852
@@ -1927,9 +1925,7 @@ TEST_TRACER("APM tracing disabled") {
19271925
19281926 // When APM Tracing is disabled, we allow one trace per second for service
19291927 // liveness. To ensure consistency, consume the limiter slot.
1930- {
1931- tracer.create_span ();
1932- }
1928+ { tracer.create_span (); }
19331929 collector->chunks .clear ();
19341930
19351931 // Case 1: extracted context with priority, but no `_dd.p.ts` → depends if
You can’t perform that action at this time.
0 commit comments