Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DNS query Trace of NotStarted before queuing. #38186

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ ActiveDnsQuery* GetAddrInfoDnsResolver::resolve(const std::string& dns_name,
ResolveCb callback) {
ENVOY_LOG(debug, "adding new query [{}] to pending queries", dns_name);
auto new_query = std::make_unique<PendingQuery>(dns_name, dns_lookup_family, callback);
new_query->addTrace(static_cast<uint8_t>(GetAddrInfoTrace::NotStarted));
ActiveDnsQuery* active_query;
{
absl::MutexLock guard(&mutex_);
Expand All @@ -48,7 +49,6 @@ ActiveDnsQuery* GetAddrInfoDnsResolver::resolve(const std::string& dns_name,
}
active_query = pending_queries_.back().pending_query_.get();
}
active_query->addTrace(static_cast<uint8_t>(GetAddrInfoTrace::NotStarted));
return active_query;
}

Expand Down