static TracesData boilerPlate(std::string&& service, std::string&& req, std::vector<Span>&& spans, const std::vector<KeyValue>& attributes)
{
- auto& spanAttrs = spans.at(0).attributes;
+ auto& spanAttrs = spans.at(0).attributes;
spanAttrs.push_back({"arg", {std::move(req)}});
spanAttrs.insert(spanAttrs.end(), attributes.begin(), attributes.end());
return TracesData{
s_ecsqueries++;
}
auto match = d_eventTrace.add(RecEventTrace::AuthRequest, qname.toLogString(), true, 0);
- d_eventTrace.addExtraValues(match, {{ "qtype", qtype.toString()}, {"ip", remoteIP.toStringWithPortExcept(53)}});
+ d_eventTrace.addExtraValues(match, {{"qtype", qtype.toString()}, {"ip", remoteIP.toStringWithPortExcept(53)}});
updateQueryCounts(prefix, qname, remoteIP, doTCP, doDoT);
resolveret = asyncresolveWrapper(LogObject(prefix), remoteIP, d_doDNSSEC, qname, auth, qtype.getCode(),
doTCP, sendRDQuery, &d_now, ednsmask, &lwr, &chained, nsName); // <- we go out on the wire!