From 8bc43eb90fc51f17aa5b59dcd441ddd9adc98fe0 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 3 Sep 2024 09:04:44 -0700 Subject: [PATCH] chore(connlib): fix field name for `match_resource_linear` span (#6523) The span of this method didn't end up logging and fields because it got renamed without the span also being adjusted. --- rust/connlib/tunnel/src/dns.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/connlib/tunnel/src/dns.rs b/rust/connlib/tunnel/src/dns.rs index 4f8f83e13..d3ba5106b 100644 --- a/rust/connlib/tunnel/src/dns.rs +++ b/rust/connlib/tunnel/src/dns.rs @@ -168,9 +168,9 @@ impl StubResolver { /// Attempts to match the given domain against our list of possible patterns. /// /// This performs a linear search and is thus O(N) and **must not** be called in the hot-path of packet routing. - #[tracing::instrument(level = "trace", skip_all, fields(domain))] - fn match_resource_linear(&self, domain_name: &DomainName) -> Option { - let name = Candidate::from_domain(domain_name); + #[tracing::instrument(level = "trace", skip_all, fields(%domain))] + fn match_resource_linear(&self, domain: &DomainName) -> Option { + let name = Candidate::from_domain(domain); for (pattern, id) in &self.dns_resources { if pattern.matches(&name) {