From: Otto Moerbeek Date: Mon, 18 Aug 2025 10:51:56 +0000 (+0200) Subject: rec: add back parent span attributes, they were lost in #15756 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F15981%2Fhead;p=thirdparty%2Fpdns.git rec: add back parent span attributes, they were lost in #15756 Fixes #15974 Signed-off-by: Otto Moerbeek --- diff --git a/pdns/recursordist/rec-eventtrace.cc b/pdns/recursordist/rec-eventtrace.cc index aeb2d4807..8b1be8f52 100644 --- a/pdns/recursordist/rec-eventtrace.cc +++ b/pdns/recursordist/rec-eventtrace.cc @@ -79,7 +79,14 @@ std::vector RecEventTrace::convertToOT(const InitialSpanInfo& ret.reserve((d_events.size() / 2) + 1); // The parent of all Spans - ret.emplace_back(Span{.trace_id = span.trace_id, .span_id = span.span_id, .parent_span_id = span.parent_span_id, .end_time_unix_nano = timestamp()}); + ret.emplace_back(Span{ + .trace_id = span.trace_id, + .span_id = span.span_id, + .parent_span_id = span.parent_span_id, + .name = "RecRequest", + .start_time_unix_nano = span.start_time_unix_nano, + .end_time_unix_nano = timestamp(), + }); std::vector spanIDs; // mapping of span index in ret vector to SpanID std::map ids; // mapping from event record index to index in ret vector (Spans)