Skip to content

Commit d501c4f

Browse files
committed
fix format
1 parent 5e4e95d commit d501c4f

File tree

3 files changed

+4
-12
lines changed

3 files changed

+4
-12
lines changed

test/test_span.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

test/test_trace_segment.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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);

test/test_tracer.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)