]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
fix(dnsdist): Set SpanKind::Server for every span
authorPieter Lexis <pieter.lexis@powerdns.com>
Wed, 15 Oct 2025 12:30:32 +0000 (14:30 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 17 Oct 2025 12:53:25 +0000 (14:53 +0200)
pdns/dnsdistdist/dnsdist-opentelemetry.cc

index ab1185c9f290b27ce15527ae6d62b9ad373ac4da..575f91a2262200e343443d247270713a96851c0c 100644 (file)
@@ -123,6 +123,7 @@ SpanID Tracer::addSpan([[maybe_unused]] const std::string& name, [[maybe_unused]
       .span_id = spanID,
       .parent_span_id = parentSpanID,
       .name = name,
+      .kind = pdns::trace::Span::SpanKind::SPAN_KINSERVER,
       .start_time_unix_nano = pdns::trace::timestamp(),
     });
     return spanID;