From: Remi Gacogne Date: Fri, 23 Jan 2026 16:17:46 +0000 (+0100) Subject: dnsdist: "Fix" formatting X-Git-Tag: rec-5.4.0-beta1~2^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16769%2Fhead;p=thirdparty%2Fpdns.git dnsdist: "Fix" formatting Signed-off-by: Remi Gacogne --- diff --git a/pdns/dnsdistdist/dnsdist-opentelemetry.cc b/pdns/dnsdistdist/dnsdist-opentelemetry.cc index 0d7a2eb12b..b5c841b655 100644 --- a/pdns/dnsdistdist/dnsdist-opentelemetry.cc +++ b/pdns/dnsdistdist/dnsdist-opentelemetry.cc @@ -47,17 +47,17 @@ TracesData Tracer::getTracesData() auto otTrace = pdns::trace::TracesData{ .resource_spans = { {.resource = { - .attributes = { - {"service.name", {"dnsdist"}}, - }}, + .attributes = { + {"service.name", {"dnsdist"}}, + }}, .scope_spans = {{.scope = { - .name = "dnsdist/queryFromFrontend", - .version = PACKAGE_VERSION, - .attributes = {data->d_attributes.cbegin(), data->d_attributes.cend()}, - }, - .spans = {}}}}}}; + .name = "dnsdist/queryFromFrontend", + .version = PACKAGE_VERSION, + .attributes = {data->d_attributes.cbegin(), data->d_attributes.cend()}, + }, + .spans = {}}}}}}; - otTrace.resource_spans.at(0).scope_spans.at(0).scope.attributes.push_back(hostnameAttr); + otTrace.resource_spans.at(0).scope_spans.at(0).scope.attributes.push_back(hostnameAttr); for (auto const& span : data->d_spans) { otTrace.resource_spans.at(0).scope_spans.at(0).spans.push_back( @@ -105,13 +105,13 @@ SpanID Tracer::addSpan([[maybe_unused]] const std::string& name, [[maybe_unused] { auto data = d_data.lock(); data->d_spans.push_back({ - .name = name, - .span_id = spanID, - .parent_span_id = parentSpanID, - .start_time_unix_nano = pdns::trace::timestamp(), - .end_time_unix_nano = 0, - .attributes = {}, - }); + .name = name, + .span_id = spanID, + .parent_span_id = parentSpanID, + .start_time_unix_nano = pdns::trace::timestamp(), + .end_time_unix_nano = 0, + .attributes = {}, + }); data->d_spanIDStack.emplace_back(spanID); }